开发者

When is a device token assigned?

开发者 https://www.devze.com 2022-12-25 04:34 出处:网络
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 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.

0

精彩评论

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