且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有警报iPhone推送通知

更新时间:2023-02-27 09:11:17

如果您使用APNS JSON,你可以简单地发送空的身体,并没有将psented用户$ P $。您可以发送隐藏字段中,为您的应用程序的目的。

If you use APNS JSON, you can simply send null as body, and nothing will be presented to user. You can send "hidden" field, for your app purposes.

或者只设置最preferred UIRemoteNotificationType(的iOS 7)或UIUserNotificationSettings(iOS版8)的通知。

Or just set most preferred UIRemoteNotificationType (iOS 7) or UIUserNotificationSettings (iOS 8) for your notifications.