当我删除我的iOS应用程序推送通知状态保持 [英] When I delete my iOS application push notification state remains

查看:209
本文介绍了当我删除我的iOS应用程序推送通知状态保持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用X code首次安装我的iPhone应用程序,我的iPhone会询问我是否要启用推送通知。

When I install my iOS application using Xcode for the first time, my iPhone asks whether I want to enable push notifications.

我可以发送通知,以及徽章显示一个数字,我送。

I am able to send a notification, and the badge shows a number that I sent.

当我从iPhone中删除应用程序放在X code重建它,并重新安装它在我的iPhone(使用X code):

When I delete the application from my iPhone and rebuild it in Xcode and reinstall it again on my iPhone (using Xcode):


  • 如果我想启用推送的设备不问。

  • 徽章是存在的和记住的最后一个号码。

  • The device does not ask if I want to enable push.
  • The badge is there and remembers the last number.

我尝试了新的设备上的同一个应用程序(安装IPA),它要求我的权限。

I tried the same application on a fresh device (installed the IPA) and it asked me for permissions.

如何才能彻底让我忘记设备应用?

How can I completely make my device forget the application?

感谢

推荐答案

有是一种解决方法,涉及两天设置系统时间提前,重新启动设备,然后修改系统时间回present。 iOS版的设计只要求准许推每一次申请日。

There is a workaround for this that involves setting the system time ahead by two days, rebooting the device, and then changing the system time back to the present. iOS is designed to only ask permission for push once a day per application.

第一重置iOS上的推送通知警报的权限
  时间推送通知启用推应用注册,iOS的问
  用户如果希望获得通知的应用程序。一旦用户
  回应了此警报它不是$ P $再次psented除非
  设备恢复或应用程序已被卸载了至少一天。

Resetting the Push Notifications Permissions Alert on iOS The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day.

如果要模拟你的应用程序的第一次运行,你可以离开
  卸载了一天的应用程序。您可以实现后者不
  实际上通过设置系统时钟转发天的等待一天或
  更多的,完全关掉设备,然后打开设备背面
  上。

If you want to simulate a first-time run of your app, you can leave the app uninstalled for a day. You can achieve the latter without actually waiting a day by setting the system clock forward a day or more, turning the device off completely, then turning the device back on.

<一个href=\"http://developer.apple.com/library/ios/#technotes/tn2265/_index.html\">http://developer.apple.com/library/ios/#technotes/tn2265/_index.html

这篇关于当我删除我的iOS应用程序推送通知状态保持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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