Reputation: 392
I'm new to Titanium app development. Now I'm trying to develop push notification app with GCM. I have done,
But still I'm getting the following error.
Faild to register for push!
INVALID_SENDER
My Titanium code:
CloudPush.retrieveDeviceToken({
success : function deviceTokenSuccess(e) {
alert('Device Token: ' + e.deviceToken);
deviceToken = e.deviceToken;
loginDefault();
},
error : function deviceTokenError(e) {
alert('Failed to register for push! ' + e.error);
}
});
Can any one help me in this?
Thanks.
Upvotes: 0
Views: 663
Reputation: 394126
After you create a new project, you'll see at the top of the page something like this :
Project ID: elite-academy-627 Project Number: 152453929631
You need to register to GCM using the project number.
Upvotes: 1