【发布时间】:2017-03-24 16:39:01
【问题描述】:
您好 Xamarin 开发人员,
我们正在开发一个应用程序,即使在应用程序关闭的情况下也应该接收推送通知。
APP打开或后台收到通知,重启设备后收不到通知。
注意:
我阅读了页面内容https://developer.apple.com/reference/uikit/uiapplicationdelegate
我在 Info.plist 中添加了:UIBackgroundModes / remote-notification
重写了方法:RegisteredForRemoteNotifications、ReceivedRemoteNotification 和 DidReceiveRemoteNotification
有什么建议吗?重启设备后我真的可以收到通知吗?我需要创建一些服务来注册设备(在 Android 中需要创建服务,在 Windows-UWP 中否)?
非常感谢!
【问题讨论】:
-
重启后你不需要做任何特别的事情来让通知工作
标签: push-notification xamarin.ios xamarin.forms apple-push-notifications