[AC-4398] Android Push Notifications
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-09-27T15:25:41.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Carlo Milanesi |
Assignee | Shak Hossain |
Created | 2016-08-30T13:50:56.000+0000 |
Updated | 2016-09-27T15:25:41.000+0000 |
Description
I am trying to implement Android Push Notifications using Appcelerator Studio 4.7.0 + Titanium using Mac OS X.
The call CloudPush.retrieveDeviceToken, emits for five times the warning "W/com.appcelerator.aps.CCPushService: Getting GCM SenderId failed. No response area in returned JSON. Will try again n 5 seconds." and then it emits the error message: "Failed receiving GCM SenderId. Getting GCM SenderId failed. Max retry time reaches."
Documentation says I should follow the steps in "Creating a Google API Project". But there are two problems: "Firebase Cloud Messaging (FCM) is the new version of GCM" and "Required: The latest versions of Android Studio and Google Play Services."
Should I use FCM, and how? Should I install Android Studio and Google Play Services, or can I remain in Appcelerator Studio?
Hello, Did you followed the instruction on configuring push service in Appcelerator? http://docs.appcelerator.com/platform/latest/#!/guide/Configuring_push_services-section-37551713_Configuringpushservices-ConfiguringpushservicesforAndroiddevices. Follow the guide on how to set GCM sender iD in app dashboard in the platform. Thanks.