如何让iPhone应用程序要求进行注册,以便推送通知多次设备 [英] how to make iPhone app asks to register device for push notification multiple times

查看:133
本文介绍了如何让iPhone应用程序要求进行注册,以便推送通知多次设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的code登记我的应用程序接收推送通知,和我,要求我为推送通知注册警报和我无意中preSS取消。
现在,我希望再有警报,所以我可以为了得到该设备令牌火委托方法。但我没有得到这个警报的更多,我每次打开设置时我发现,通知关闭的应用程序。我试图从设备,改变应用程序的版本中删除应用程序,删除测试配置文件,清理目标,即使我重置所有iPhone的设置,但仍然没有能够解决this.I将非常AP preciate任何帮助,
谢谢

  [UIApplication的sharedApplication] registerForRemoteNotificationTypes:
     UIRemoteNotificationTypeBadge |
     UIRemoteNotificationTypeAlert |
     UIRemoteNotificationTypeSound];


解决方案

即使世界在设置的通知选项。检查你的应用程序,并从那里打开通知。

我是在什么地方了解到的iOS 4有这个错误,它不会即使youremove再问,并重新安装应用程序。

尝试
设置 - >通知 - >你的APP->打开。

希望它帮助。
谢谢

I have used the following code to register my app to receive push notification, and I got the alert that asks me to register for push notification and I accidentally press cancel. Now I want to have the alert again so I can fire the delegate method in order to get the device token. But I don't get this alert any more and every time I open the settings I found that the notification is turned off for the app. I tried to delete the app from device, change app version, delete testing profile ,clean the target even I reset all the iPhone settings, but still was not able to solve this.I would very much appreciate any help, thanks

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
     UIRemoteNotificationTypeBadge | 
     UIRemoteNotificationTypeAlert | 
     UIRemoteNotificationTypeSound];  

解决方案

Theres a notification option in the settings. Check out your application and turn on the notification from there.

I have learned somewhere that iOs 4 has this bug that it wont ask again even if youremove and reinstall the application.

Try Settings->Notifications-> your app-> Turn it on.

Hope it helps. Thanks

这篇关于如何让iPhone应用程序要求进行注册,以便推送通知多次设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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