我正在我的应用程序中注册iOS推送通知。推送通知发送到所有设备。
[application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert) categories:nil]];
[application registerForRemoteNotifications];我想限制接收推送通知从哪里发送。因为,如果我发送推送通知从我的A设备,并来到主屏幕,同样的A设备也收到该推送通知。这不是我所期望的行为。
如何将接收推送通知限制在被推送的同一设备上?
发布于 2015-03-31 07:23:51
Send the APNS Device Token of Device A to the API/Webservice sending Push Notifications.
Ask Web service developer to restrict sending Push Notification to APNS Device Token of Device A and send to rest devices.
And you are done.https://stackoverflow.com/questions/29362662
复制相似问题