iOS-用新版本设置旧版本时,无法删除推送通知许可,该版本删除了推送通知

发布于 2025-02-03 10:10:43 字数 403 浏览 3 评论 0原文

我构建了一个带有推送通知(版本1.0)的应用程序,我已经安装了它们,并在出现权限弹出弹出时允许接收通知,并且该权限出现在应用程序设置中。

img:允许push-notification

我收到了一个请求,以从当前应用程序中删除推送通知。我删除了推送通知功能(.entitlements文件)并删除了注册的源实现,显示通知,但是当我使用Xcode覆盖应用程序VER 1.0时,在设置中仍存在接收通知的权限。只有当我删除旧应用并安装新应用时,它才会消失。

是否有任何解决方案可以帮助我删除通知权限而无需删除应用程序并重新安装它?

感谢所有人的解决方案!

I built an app with push notifications added (version 1.0), I have them installed and allow to receive notifications when the permission popup appears and that permission appears in the app's settings.

img:allow-push-notification

I received a request to remove push notifications from the current app. I have removed the push notification capability (.entitlements file) and removed the source implementation of registration, show notification but when I use xcode to overwrite app ver 1.0, the permission to receive notifications still exists in settings. Only when I remove the old app and install the new one does it disappear.

Is there any solution that can help me to remove the notification permission without having to delete the app and reinstall it?

Thanks for the solutions from everyone!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

软糖 2025-02-10 10:10:43

这里有两件事。

一个是注册推送通知的权利。

第二个是用户许可以显示通知(无论是本地还是远程)。

您的应用程序可以包括推送通知权,但不要求用户索取通知权限。例如,这使您的应用程序可以接收“无声”通知,例如,触发数据刷新。

一旦您的应用程序要求用户允许显示通知(无论您打算显示本地还是远程),通知设置将在应用程序设置中显示。除了用户删除您的应用程序并重新安装它,这不能删除,除非

There are two different things here;

One is an entitlement to register for push notifications.

The second is permission from the user to show notifications (whether local or remote).

Your app can include the push notification entitlement but not ask the user for notification permissions. This allows your app to receive "silent" notifications, to trigger a data refresh, for example.

Once your app has asked the user for permission to display notifications (whether you intend to show local or remote) the notification settings will show in the app settings. This cannot be removed, except by the user removing your app and reinstalling it

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文