[AC-6210] ti.cloudpush - Device token is null
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2019-04-22T22:26:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | android, cloudpush |
Reporter | jamesjw01 |
Assignee | Shak Hossain |
Created | 2019-04-15T22:25:49.000+0000 |
Updated | 2019-04-22T22:26:43.000+0000 |
Description
I'm getting these errors from ti.cloudpush:
* Device token is null
* Getting GCM SenderId failed
I have triple checked the Sender ID that I got from Firebase is correct. I added it to my tiapp.xml as follows:
407945964413
---- ERROR LOG ----
[WARN] : W/com.appcelerator.aps.CCPushService: Getting GCM SenderId failed. No response area in returned JSON. Will try again in 5 seconds.
[ERROR] : E/com.appcelerator.aps.LogToSDCard: Error on writing to SD card. Exception:java.io.FileNotFoundException: /storage/emulated/0/cocoafish/log/PushClient-20190416.log (No such file or directory)
[ERROR] : E/com.appcelerator.aps.CCPushService: Getting GCM SenderId failed. Max retry time reaches.
[ERROR] : E/com.appcelerator.aps.LogToSDCard: Error on writing to SD card. Exception:java.io.FileNotFoundException: /storage/emulated/0/cocoafish/log/PushClient-20190416.log (No such file or directory)
[WARN] : W/com.appcelerator.aps.CCPushService: Device Token is null.
I was wondering if the Appc App ID or GUID would have anything to do with it? I noticed those both have changed at some point and I'm not sure when they changed or why they changed. I've taken so many steps figuring things out along the way I forget what is what sometimes
I've tried using ti.goosh and it successfully retrieves the device token.
So now, as a hack, I've used ti.goosh to retrieve the device token and sending it to the
Cloud.PushNotifications.subscribeToken
it returns error message: Error: [INFO] : Android application package not configuredHello, The issue with ti.cloudpush is only with the latest version? Can you try with a lower version or the previous version? Let us know. Thanks.
Hi, Sorry, I forgot to update here when I fixed it. The problem was with my App ID and Oauth details in my tiapp.xml file. When I took over the project I moved it to a different organisation and those details got mixed up somehow. Thank you for your response. You can close this ticket.