没有得到推送通知警报请求iPhone [英] Not getting push notification alert request iPhone

查看:294
本文介绍了没有得到推送通知警报请求iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个开发很新,所以请帮助我

I am very new to this development, so please help me

我正在使用此代码开始推送通知

I am starting push notification using this code

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

但是,在我的设备上,我没有得到推送通知用户权限警告说应用程序名称想发送通知

But, on my device I am not getting push notification user permission alert saying "App Name" Would like to send Notifications

我发现如果设备被监狱打破,那么我们没有收到权限提醒信息,但我的设备不是监狱破解。

I found that if device is jail broken, then we don't receive permission alert message, but my device is not jail broken.

已编辑

我也在我的设备上收到推送通知,只是在第一次开始时没有获得许可警报。

I am also getting push notifications on my device, just not getting permission alert on first start.

任何对此的帮助都会非常感激。

Any help on this will be really thankful.

推荐答案

我发现推送通知权限警报只在第一次启动应用程序时出现,即使我们删除应用程序,也不会发出权限警报。即使应用程序卸载超过7天,仍然不会出现许可警报。

I found that push notifications permission alert comes only first time application is started, even if we delete application, permission alert will not come. Even if application is uninstalled for more than 7 days, still permission alert will not come.

当我在不同的设备上测试我的应用程序时,我发现了这个问题,即该权限提醒第一次申请时只运行一次。

When I tested my application on different devices, I found this issue, that permission alert comes only once, first time application run.

希望这些信息可以帮助其他同样面临同样问题的人。

Hope this information helps others who also faced same issue..

这篇关于没有得到推送通知警报请求iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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