[英]Restrict receiving push notification to the same device where it has been pushed from
我正在我的应用程序中注册iOS推送通知。 推送通知正在发送到所有设备。
[application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert) categories:nil]];
[application registerForRemoteNotifications];
我想限制接收推送通知的发送来源。 因为,如果我从A设备发送推送通知并进入主屏幕,则同一A设备也正在接收该推送通知。 那不是我的预期行为。
如何限制将推送通知接收到被推送的同一设备?
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.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.