I have followed the following steps properly. And I used PushMeBaby application as the server to test push notifications since I not having much experience in implementing server side code my self for push notification. Using my adHoc Distribution profile..
PushMeBaby source code - http://stefan.hafeneger.name/download/PushMeBabySource.zip 1. First I have enabled Push Notifications for my Application ID. 2. Then I have created and downloaded both Development Push SSL certificate & Productionn Push SSL certificate. 3. Installed both these certificates in Key Chain Access in my Mac ( PushServices keys are installed ) 4. Copied these two files into PushMeBaby XCode sample project. ( aps_developer_identity.cer & aps_production_identity.cer ) 5. Then created new adhoc distribution provisioning profile with this changed Application ID. 6. Downloaded this distribution profile and installed to xcode. 7. Added client side code for XmppApp to register for push notifications and to receive push notifications in Application Delegate. 8. Selected this new APN enabled profile as code signing identity for my iPhone application and built a binary for iPhone. 9. Installed this binary for my iPhone and I could see in push notification section my application listed for all badge, alert and sound. 10. Ran the application and using organizer I got the application logs.. from their I could see the application didRegisterForRemoteNotificati on: delegate called with device token.. so I copied this token to a text file to use in PushMeBaby xcode provider app. 11. Then changed PushMeBaby Application with device token and pay load and try to use it to send push notifications.. but device did not receive.. I tried with both developer and production certificates.. But this still could not receive a push notification.. I have tried this with recreating certificates also.. but could not get push notifications working.. Following is the PushMeBaby provider logs I see when I send push .. 2010-02-01 20:10:30.692 PushMeBaby[2507:a0f] MakeServerConnection(): 0 2010-02-01 20:10:30.728 PushMeBaby[2507:a0f] SSLNewContext(): 0 2010-02-01 20:10:30.729 PushMeBaby[2507:a0f] SSLSetIOFuncs(): 0 2010-02-01 20:10:30.730 PushMeBaby[2507:a0f] SSLSetConnection(): 0 2010-02-01 20:10:30.731 PushMeBaby[2507:a0f] SSLSetPeerDomainName(): 0 2010-02-01 20:10:30.732 PushMeBaby[2507:a0f] SecKeychainOpen(): 0 2010-02-01 20:10:30.733 PushMeBaby[2507:a0f] SecCertificateCreateFromData(): 0 2010-02-01 20:10:30.740 PushMeBaby[2507:a0f] SecIdentityCreateWithCertificate(): 0 2010-02-01 20:10:30.741 PushMeBaby[2507:a0f] SSLSetCertificate(): 0 2010-02-01 20:10:33.662 PushMeBaby[2507:a0f] SSLHandshake(): 0 2010-02-01 20:10:51.088 PushMeBaby[2507:a0f] SSLWrite(): 0 144 Could anyone provide me some sample server code.. or guess why I am not getting push notification messages in phone.. Thank you and Kind Regards, Tharindu Madushanka _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
