开发者

Recieving notifications from APNs in iPhone applicationg without provisioning profile

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 regi开发者_开发百科sterForRemoteNotificationTypes- 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)?


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜