簡體   English   中英

將接收推送通知限制為已從其推送到同一設備

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM