Ho to test Apple Push notifications before submitting to Appstore (Urban Airship)

You must Login before you can answer or comment on any questions.

Hi, I'm a little bit lost : I have tested notifications in dev mode with Urban Airship and it works. I would like now to test the production mode before submitting to the Appstore. I use this code (keys changed for privacy)

UrbanAirship.options = {
        APP_STORE_OR_AD_HOC_BUILD : true,
        PRODUCTION_APP_KEY : 'my app prod key',
        PRODUCTION_APP_SECRET : 'my app secret key',
        DEVELOPMENT_APP_KEY : 'my dev app key',
        DEVELOPMENT_APP_SECRET : '-my dev secret key',
        LOGGING_ENABLED : true
    };
I have rebuilt the app and send via adhoc on my iPhone to test. but in error console I get Device token rejected.

What could be the problem ? Is it possible to test it in production mode before submitting to Appstore ?

Regards

— asked 10 months ago by Armindo Da Silva
2 Comments
  • Sorry, the title should have been HOW to test...

    — commented 10 months ago by Armindo Da Silva

  • I may have found they way of testing it, note sure that this is the good one. Instead of sending the app directly to the device via studio, I have choose distribute adhoc, then saved the IPA file (using Adhoc profile), then used it. And now I receive notifications. Hope that now it will work in the Appstore :-)

    — commented 10 months ago by Armindo Da Silva

Your Answer

Think you can help? Login to answer this question!