When is a device token assigned?
I am trying the Urban Airship APNS development push server. When I run their sample app, I can't seem to get the Device Token. What needs to be done to make sure the token exists? I've checked the provisioning profile and the bundle id.
Does my server need to push (through UrbanAirship) for the token to be generated for the first time? Is the token generated at the first pu开发者_开发百科sh time? How do I register devices to receive push notifications? (I assume that this is built into the sample app, but what do I know...)
The token is generated when you call -registerForRemoteNotificationTypes:. Assuming this call is successful, the token is generated and returned via callback. If you've properly uploaded your APNS certificate to Urban Airship, and created the proper mobileprovision file (and, of course, built against it), that's all that's required.
精彩评论