Syed Muhammad Umair
Syed Muhammad Umair

Reputation: 570

Inactive device token, urbanairship, cordova, ios

I am developing an app using cordova. For push notification, I am integration urbanairship. The device is getting registered successfully but the status of device token gets inactive.

I have created both development and production profiles but am unable to get device registered as active.

Can anyone help me out plz?

Upvotes: 0

Views: 735

Answers (2)

Naitik
Naitik

Reputation: 1465

There are times during development or perhaps you’ve launched your app to the app store and you see either your token or messages of inactive tokens in your UA application. Device token as inactive when one of three things happen:

  1. Apple tells us that the application has been uninstalled via the feedback service, which we check on a regular basis.

  2. Apple rejected the device token for your app upon receipt of the notification at their servers

  3. explicit delete call on the device token, which marks it as inactive and clears the alias and any associated tags.

  4. If the device token was created when iOS 6 was installed, and the device has since updated to iOS 7, the old device token is eventually rejected by Apple because the device now has a new, app-specific iOS 7 device token.

In any case, applications should expect and handle inactive device tokens properly. do one of the following:

  1. Register the device token every time the application is opened,

  2. Use feedback API regularly, store inactivated device tokens in your own database, and send registrations when the device token becomes active again

Thank you. Hope it will help you.

Upvotes: 1

Donato Perconti
Donato Perconti

Reputation: 813

If the device token is immediately inactive then it's a good sign that you've mixed your development and production environments. Remember, production certificates need to line up with production applications, from Apple all the way to Urban Airship. Likewise with development. If a development device token attempts to register as a production application, Apple will reject it and Urban Airship will mark it as inactive.

Here's another UA support article on how to create the appropriate type of application: https://support.urbanairship.com/entries/69534443-Urban-Airship-Development-vs-Production-Apps

Upvotes: 0

Related Questions