开发者

apns push notification not sent : Baddevicetoken

开发者 https://www.devze.com 2023-02-03 16:54 出处:网络
I have a problem with apns sharp: I get the device token from my iTunes for the iPhone, and I put it into the program.

I have a problem with apns sharp:

I get the device token from my iTunes for the iPhone, and I put it into the program.

However I am getting a baddevice开发者_StackOverflow社区tokenexception : 40 , invalid ... error. He must have 64 characters.

I don't know how to get a device token with 64 characters?

Thanks.


Your id is the unique identifier of the iPhone, but the devicetoken is the id to send to Apple for notifications.

To get the deviceToken :

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
0

精彩评论

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