Depending on wher Jeremy was, he may could have heard how Shiro's phone received the message. And if he hurried a little he could easily catch up to him. Shiro instinctly knew that the message he just received was from Jeremy. But he was too scared to open it so he ignored it and walked on.