简体   繁体   English

如何将我越狱的iPhone应用程序添加到通知设置

[英]How to add my jailbroken iPhone app to notification settings

I'm working on an iPhone app with remote notifications, and it's set up already. 我正在使用带有远程通知的iPhone应用程序,并且它已经设置好了。 But there is a problem: when I install it to the user applications path, everything is all right (I can receive a remote notification). 但是有一个问题:当我将其安装到用户应用程序路径时,一切正常(我可以收到远程通知)。 But when I package the app into a .deb and install it to the system applications path, I can't find the item in Settings > Notification s and can't receive anything when the app is killed or enters background, either. 但是,当我将应用程序打包为.deb并将其安装到系统应用程序路径时,我在“设置”>“通知”中找不到该项目,并且在应用程序被杀死或进入后台时也无法接收任何内容。

However, I can receive a notification when it's running in the foreground through the method 但是,当该方法在前台运行时,我可以收到通知

application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

So, I have no idea what to do now. 所以,我不知道该怎么办。 How can I solve this? 我该如何解决?

Its all about Provision profile of your App. 有关您的应用程序的配置文件 Just make sure all your provision file name ( Code sign, PEM file and Provision profile under setting in devic e). 只要确保您所有的供应文件名( 在设备设置中的代码符号,PEM文件和供应配置文件 )即可。 If there is t oo many provision profile in setting, just delete keep it single and try. 如果设置中没有很多配置文件 ,只需删除使其保持单一并尝试。 Hope you understood. 希望你能理解。 Ask if you have doubt. 询问您是否有疑问。

Ref: App not listed under device Settings --> Notification for iOS 7 参考: 应用未在设备设置-> iOS 7的通知下列出

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM