Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6210] ti.cloudpush - Device token is null

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2019-04-22T22:26:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelsandroid, cloudpush
Reporterjamesjw01
AssigneeShak Hossain
Created2019-04-15T22:25:49.000+0000
Updated2019-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.

Comments

  1. jamesjw01 2019-04-15

    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
  2. jamesjw01 2019-04-16

    I've tried using ti.goosh and it successfully retrieves the device token.
  3. jamesjw01 2019-04-16

    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 configured
  4. Sharif AbuDarda 2019-04-18

    Hello, 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.
  5. jamesjw01 2019-04-21

    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.

JSON Source