当我的 iOS IM 应用程序在后台接收新消息时,我无法收到提醒 ,我应该怎么办?我尝试监控消息到达方法,并使用 NSLocalNotification 来显示提醒。但是当我的应用程序在后台时,该方法不起作用。那么,怎么办呢?
最佳答案
您的应用程序无法在后台运行。您应该使用 APN 来执行此操作。 https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
关于ios - 如何在我的 IN 应用程序在后台运行时发出提醒,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34737563/