IBM Worklight 6.0 - Push subscribing stopped from

2019-06-14 10:13发布

问题:

I am trying to get push notifications working on a Worklight V6.0.0.1 app running on an Android 4.1.2 device.

The only error that I see is in the device LogCat:

Can't subscribe, notification token is not updated on the server

Here are a few lines prior to the error (with ids modified):

12-03 20:12:49.013: D/GCMBaseIntentService(7218): handleRegistration: registrationId = xxxxxxxxx_xxxxxxx_xxxxxxx-xxxxxxxxxx-xxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx-xxxxxx, error = null, unregistered = null

12-03 20:12:49.013: D/GCMRegistrar(7218): resetting backoff for com.abc123

12-03 20:12:49.013: D/WLDroidGap(7218): Registered at the GCM server with registration id xxxxxxxxxxxxxxx_xxxxxxxxxxx_xxxx-xxxxxxxxx-xxxxxx-xxxxxxx_xxxx-xxxxxxxxx

12-03 20:12:49.013: W/CordovaPlugin(7218): Attempted to send a second callback for ID: Push12345678

12-03 20:12:49.013: W/CordovaPlugin(7218): Result was: "xxxxxxxxx_xxxxxxxxxx_xxxx-xxxxxxxxxxs-xxxxxxxxxx_xxxx-xxxxxxxxxxx_xxxxxx-xxxx"

12-03 20:12:54.451: E/abc123(7218): Can't subscribe, notification token is not updated on the server

I don't see any errors in the Worklight server log. I have also tried turning on the com.worklight.integration.* trace flag, but I didn't see any additional error messages.

I have used the same pushSender key and senderId values in the past.

Are there any suggestions for things I can do to get more debug information on why this subscription request is failing?

回答1:

Before you get the error "Can't subscribe, notification token is not updated on the server", there must be some request messages sent to the server,can you share it pls?