在没有配置文件的情况下从 iPhone 应用程序中的 APN 接收通知
任务:
- 有一个越狱的 iPhone
- 需要编写一个可以接收来自 APN 的通知的应用程序
问题:在 iPhone 上运行该应用程序后,程序显示错误:“没有找到应用程序的有效应用程序环境授权字符串”(我想是在 registerForRemoteNotificationTypes 处调用) 。 据我了解,问题根源是我在没有配置文件的情况下构建了应用程序。
问题:在我收到我的苹果开发者帐户之前,是否有可能使该程序运行(以便创建配置文件)?
Task:
- have a jailbroken iPhone
- need to write an application which would receive notifications from APNs
Problem: after running the application on iPhone program shows an error: "no valid apps-environment entitlement string found for application" (at registerForRemoteNotificationTypes- call i suppose).
As I've understood the problem source is that I built the application without a provisioning profile.
Question: is there any possibility to make the program work before I receive my apple developer account (in order to create a provisioning profile)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Apple 推送通知服务要求设备注册该服务才能接收通知。为了向 APNS 服务器注册,需要对应用程序进行签名和配置。
此外,在许多情况下,如果使用已通过 iTunes App Store 正式签名、配置和分发的合法应用程序,越狱手机可能无法正常工作。
我相信有报道称,针对合法 iPhone 用户的 AIM 应用程序的通知正在发送给拥有越狱 iPhone 的用户,在某些情况下,这些人甚至没有安装 AIM。这可能与越狱允许用户更改设备的 UDID 相关,这只会把一切搞砸。
Apple Push Notification Service requires that a device be registered with the service in order to receive notifications. In order to register with the APNS server, an app needs to be signed and provisioned.
Also, jailbroken phones may not work correctly in many cases where a legitimate application, that has been signed, provisioned and distributed officially via the iTunes App Store, is being used.
I believe it was reported that notifications from the AIM app intended for legitimate iPhone users were being sent to people with jailbroken iPhones, who in some cases didn't even have AIM installed. This probably has something to do with the fact that jailbreaking allows a user to change their device's UDID, which just screws everything up.
不可以。您需要拥有有效的配置文件。
No. You need to have a valid provisioning profile.
如果您安装了 MobileSubstrate,则可以使用以下方法在本地发送虚假推送通知:
http://networkpx.blogspot.com/2009/06/sending-push-notification-locally.html
You can send a fake push notification locally if you installed MobileSubstrate, with this method:
http://networkpx.blogspot.com/2009/06/sending-push-notification-locally.html