我已經嘗試了鏈接http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12中的例子,爲我的iPhone推送通知消息。我可以成功運行除了第一次註冊應用程序推送通知的步驟之外的所有步驟。註冊iPhone應用程序推送通知不起作用
我也跟着代碼的不同變化:
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
但沒有爲我工作。我在iPhone 4中測試它,我的Xode版本是4.2,OS是Lion。 請指教。
你面臨什麼問題?你通過這個鏈接:http://mobiforge.com/developing/story/programming-apple-push-notification-services也http://stackoverflow.com/questions/8075255/push-notification-for-development-certificate/8075436#8075436 – Sarah 2012-01-17 11:07:03