【发布时间】:2015-04-16 08:40:21
【问题描述】:
我知道这个问题看起来很重复,但我没有按照我的要求找到确切的答案。按照以下步骤进行与医疗事件相关的应用程序
1) connected the app to smart watch.
2) schedule the local notifications i. e when user needs to take
medicine
3) when the schedule time arrives local notification fires and
delegate method is calling (did receive local notification)
4) At the time of firing local notifications i am sending
message(sms) to the user from the app that he has to take certain
medicine
当应用程序在前台时一切正常,当应用程序到达后台时,只有本地通知正在触发,用户没有收到任何消息。因为当应用程序在后台时没有调用任何方法。但是我的整个应用程序使用情况主要取决于发送短信。
有什么解决办法吗?欢迎任何帮助!谢谢!!
【问题讨论】:
标签: objective-c iphone notifications uilocalnotification uibackgroundtask