Page 1 of 2

Invalid Token In Push Console

Posted: Sat May 23, 2015 4:50 am
by Lai

I get invalid token when sending push message in console. Would you please check the reason why the error happens.

I share the project and database.
project: test
database: test

I have another project which is duplicated from 'test' with different app ID. Push is perfectly functional.

I share the project and database too.
project: bug2
database bug2

Both projects are:

  • Use production certificate and corresponding provisioning profile
  • Use Appery platform to build ipa
  • Use application loader to upload to Apple for beta test

Invalid Token In Push Console

Posted: Sat May 23, 2015 4:51 am
by Lai

I have asked this question 3 days ago in another thread.
https://getsatisfaction.com/apperyio/...
Please help as soon as possible. Thanks.


Invalid Token In Push Console

Posted: Sat May 23, 2015 5:23 am
by Illya Stepanov

Hi Lai -

[quote:]
I get invalid token when sending push message in console.
[/quote]

Remove device from your Devices collection, reconnect Database to your project and give it another try.

[quote:]
Both projects are:

  • Use production certificate and corresponding provisioning profile

  • Use Appery platform to build ipa

  • Use application loader to upload to Apple for beta test
    [/quote]

    Production certificates not intended for testing, you have released this apps?
    Please clarify what you are doing in 3rd step.


Invalid Token In Push Console

Posted: Sat May 23, 2015 7:19 am
by Lai

I expect to use production certificate when I preform testflight beta test. Otherwise, there is no way to test the push feature before the app is released.

Also, as I mentioned, I can achieve push message in production server in one app but it is failed in another app when I preform the same procedure to setup and build the apps.


Invalid Token In Push Console

Posted: Sat May 23, 2015 3:51 pm
by Lai

[quote:]
Remove device from your Devices collection, reconnect Database to your project and give it another try.
[/quote]

It doesn't help. I got the same result when sending push message.


Invalid Token In Push Console

Posted: Tue May 26, 2015 6:27 am
by Lai

May I have your update?


Invalid Token In Push Console

Posted: Tue May 26, 2015 2:15 pm
by Illya Stepanov

Hi Lai -

We have tested your app with production Push certificates and push messages are working correctly as expected send/receive on the device.


Invalid Token In Push Console

Posted: Tue May 26, 2015 2:23 pm
by Lai

Can you please describe clearly what have been done in your side? For bug2 project, I can receive push notification. However, for test project, the push notification is not functional. I can see invalid token in console. Do you mean you can receive push notification in test project? Do you change any thing so that the feature is working?


Invalid Token In Push Console

Posted: Tue May 26, 2015 4:20 pm
by Illya Stepanov

Lai -

From your 'test' app backup file created an app.

Added Push provision profile and certificate and corresponding Bundle ID for Push certificate and provision profile in iOS binary settings.

Enabled Push for project and added Push certificate and password and checked 'Release' check box in Push tab.

Exported as binary .ipa file and installed it on device -- started app on the device, enabled push for this app, all alerts were showed upon app loading.

Sent Push messages in app console -- device received Push messages.


Invalid Token In Push Console

Posted: Tue May 26, 2015 5:01 pm
by Lai

Thanks for your detailed explanation. However, I am afraid I can't get any useful information from your testing result. I need the reason why I will get invalid token when I send the push message in test project. Maybe you can get further information in server which is not shown in your console interface.

Also, the test project is simple to add basic requirement in app for push notification. I don't think the project itself is the root cause of the failure. Please provide more information for me to debug the problem. If I can get the feature done in one simple app, I don't see the reason why I can't get the feature done in another simple app.

Also, I use testflight beta test to install the app on device. I am not installing the ipa to the device. I believe they are difference. The production provisioning profile is not target for any testing device.

I got this problem for almost one month but I can't fix it. Push is the basic feature for app. This doesn't involve any programming issue. It is the setting in your platform. So, please take it seriously.