java-apns icon indicating copy to clipboard operation
java-apns copied to clipboard

Wrong Inactive Device Format

Open santosh-1987 opened this issue 9 years ago • 1 comments

Hi Team ,

Once User downloads a app from iOS Store , We get a device token in format "zZIBc7H0ml1I+/F+V3VuGgsMXRJAB2y0fVgqpXn/UbM=" which is saved in database.

When Feedback service is called it returns the data in format "D06F985A71178CBA7F426D253A06636F57C7499C5B82C37242284773D9C7A0F5"

Can anyone Please suggest why the feedback token differs.

santosh-1987 avatar Apr 21 '16 14:04 santosh-1987

How did you get that token "zZIBc7H0ml1I+/F+V3VuGgsMXRJAB2y0fVgqpXn/UbM=" ?

An example for a valid ios push token is "75ea9b21b9832aac031f9831715756d458251bc3c372d46c30409baa50d89692"

So, feedback token is correct there is no problem there.

in your ios app's AppDelegate.swift file or AppDelegate.m file

there is a function that you override to register for remote notifications func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData)

Then you can get your token id by using deviceToken.description however, it includes "<" and ">" and " " characters you have to remove them before using that token.

gunhansancar avatar May 04 '16 06:05 gunhansancar