调试模式下的构建和临时构建的奇怪行为?
我正在尝试实现一个将在后台运行的示例应用程序。当收到消息时,它将通过本地通知进行通知。这将是一个持续的过程。
当它处于调试模式时,它工作正常。但是,当我进行临时构建并将其与我的设备同步时,它无法连续工作。它只接收一次消息。
我不明白为什么这在调试模式下有效,但在临时构建时不起作用!!!!!!!
请帮助我摆脱困境。 如有任何建议,我们将不胜感激。
提前致谢。
I am trying to implement a sample application that will be running in background. When a message is received, it will notify with a local notification. It will be a continuous process.
It's working fine when it is in debug mode. But when i am making an Adhoc build and sync it with my device it doesn't working continuously. It is just receiving the messages once.
I can't understand that why this is working when it is in debug mode but not working when it is an Adhoc build !!!!!!!
Please help me to get out of this. ANY SUGGESTION WILL BE APPRECIATED.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论