从 iPhone 应用程序启用/禁用 Apple 推送通知? [英] Enable/Disable Apple Push Notification from iPhone app?

查看:65
本文介绍了从 iPhone 应用程序启用/禁用 Apple 推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 APNS 还有一个疑问.那是当应用程序首次启动时,如果用户接受他们可以接收通知,则应用程序会要求 Apple 推送通知权限.如果用户取消,他们将无法收到任何通知.我清楚吗??

I have one more doubt on APNS. That is when the app first launch the app asks for Apple Push Notification Permission if the user accepted the they can receive the notifications. If the user cancelled they can't receive any notifications. Am I clear??

现在我的怀疑是,

  1. 第一次如果用户在几天后再次从应用程序取消推送通知服务(点击Cancel按钮)如果他们想收到Apple推送通知,则可以启用Apple从应用程序为特定用户再次推送通知.

  1. At first time if the user cancelled the push notification service from the app (Clicked Cancel button) again after some days if they want receive Apple Push Notification it is possible to enable the Apple Push Notification again for the particular user from the App.

如果用户先接受苹果推送通知服务,几天后如果他们不想收到通知,可以在我们的应用程序中禁用 APNS 吗?我希望你能理解我的疑惑.任何人都可以澄清这个疑问吗?

And if the user accept the apple push notification service first and after some days if they don't want to receive the notifications it is possible to disable the APNS in our app? I hope you understand my doubt. Can any one please clarify this doubt?

是否可以在我们的 iPhone 应用中实现上述这些场景?

It is possible to do these above scenarios in our iPhone app?

请帮帮我.提前致谢.

推荐答案

很遗憾,您无法通过应用代码为您的应用启用或禁用推送通知.请求许可的对话框只显示一次.通常,其他应用程序会通过进入设置-> 通知-> 应用程序名称向用户显示启用/禁用推送通知的说明.

Unfortunately you can't enable or disable the Push Notifications for your app from the app code. The dialog asking for permission is displayed only once. Usually, other apps display instructions to the user to enable / disable push notifications by going into Settings-> Notification-> AppName.

这篇关于从 iPhone 应用程序启用/禁用 Apple 推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆