Unable to manage GCM notification
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Unable to manage GCM notification
Hello,
I wrote an application in order to use push notification.
I also registered it on google play and now it is available for download.
My problem is that I can't get the pushNotificationRegistered event.
I put in the stack this code:
on pushNotificationRegistered tMessage
answer "Registered:" && quote & tMessage & quote with "Okay"
end pushNotificationRegistered
It seems when the app is launched on device there is no communication with the GCM Server.
There is a specific reason for which my device android doesn't send sender id and application id to the GCM server for registration?
I also attach to this post the configuration of my app both on google and LC 7.0.1
Thanks a lot for your help,
Gianluca
I wrote an application in order to use push notification.
I also registered it on google play and now it is available for download.
My problem is that I can't get the pushNotificationRegistered event.
I put in the stack this code:
on pushNotificationRegistered tMessage
answer "Registered:" && quote & tMessage & quote with "Okay"
end pushNotificationRegistered
It seems when the app is launched on device there is no communication with the GCM Server.
There is a specific reason for which my device android doesn't send sender id and application id to the GCM server for registration?
I also attach to this post the configuration of my app both on google and LC 7.0.1
Thanks a lot for your help,
Gianluca
Re: Unable to manage GCM notification
I add some information.
I spent all the day in testing and I found this:
- LC 6.7.1: if I deploy on Android specifying the Project ID, I got a registration error event with message INVALID_SENDER
- LC 7.0.1: deploying the same code I have no message of failed or successful registration.
May it's a bug of LC 7.0.1?
I am also asking why I got the INVALID_SENDER error.
I run LC on W7 Professional, Android API 20, Java 1.7.6
I know it's a differente management but I add that deploying on iOS it works properly.
Thanks again for any help.
Gianluca
I spent all the day in testing and I found this:
- LC 6.7.1: if I deploy on Android specifying the Project ID, I got a registration error event with message INVALID_SENDER
- LC 7.0.1: deploying the same code I have no message of failed or successful registration.
May it's a bug of LC 7.0.1?
I am also asking why I got the INVALID_SENDER error.
I run LC on W7 Professional, Android API 20, Java 1.7.6
I know it's a differente management but I add that deploying on iOS it works properly.
Thanks again for any help.
Gianluca
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Unable to manage GCM notification
Hi GianLuca
Sorry I've never used push notification - but the lovely Neil Rogers of RunRev has and with any luck his postings (and video) on this thread will be of help http://forums.livecode.com/viewtopic.ph ... on#p113366
Good luck!
Dave
Sorry I've never used push notification - but the lovely Neil Rogers of RunRev has and with any luck his postings (and video) on this thread will be of help http://forums.livecode.com/viewtopic.ph ... on#p113366
Good luck!
Dave
"...this is not the code you are looking for..."
Re: Unable to manage GCM notification
Hi Dave,
thanks for your suggestion.
I watched the video but I have a bigger problem than what it's explained in it.
My app when start on the device is not able to register and so I can't have the device ID in order to try to push them notifications.
I am really in trouble now.
Thanks a lot,
Gianluca
thanks for your suggestion.
I watched the video but I have a bigger problem than what it's explained in it.
My app when start on the device is not able to register and so I can't have the device ID in order to try to push them notifications.
I am really in trouble now.
Thanks a lot,
Gianluca
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Unable to manage GCM notification
sorry to hear that Gianluca and I'm afraid I don't have the relevant experience to help you (maybe some kind expert will chime in soon)
There is a guy called John Craig (splash21.com - who also does MobGUI) who was one of the first to get push notifications going with LiveCode - this thread is a couple of years old and may be too old now but it does include a sample stack http://livecodejournal.com/forum/viewto ... ?f=27&t=55 and video.
Also and finally (the last thing I can think of) have you tried multiple searches here in the Forum?
Dave
EDIT: one other thing, have you tried with different Android devices?
There is a guy called John Craig (splash21.com - who also does MobGUI) who was one of the first to get push notifications going with LiveCode - this thread is a couple of years old and may be too old now but it does include a sample stack http://livecodejournal.com/forum/viewto ... ?f=27&t=55 and video.
Also and finally (the last thing I can think of) have you tried multiple searches here in the Forum?
Dave
EDIT: one other thing, have you tried with different Android devices?
"...this is not the code you are looking for..."
Re: Unable to manage GCM notification
Hi Dave,
I already read these post but it is not useful for my project.
I tested on 2 different Android devices on LC 6.71. and I got always the same errore: INVALID_SENDER.
I read in this forum of several people using this feature so it's really strange that I have this problem.
Maybe someone of them can help me....
Thanks,
Gianluca
I already read these post but it is not useful for my project.
I tested on 2 different Android devices on LC 6.71. and I got always the same errore: INVALID_SENDER.
I read in this forum of several people using this feature so it's really strange that I have this problem.
Maybe someone of them can help me....
Thanks,
Gianluca
Re: Unable to manage GCM notification
UPDATE: After installing the LC 7.0.1 on Mac environment I have the same problem.
Re: Unable to manage GCM notification
Hi Gliacca,
This does seem like an issue as when I try my test push stack with 7.0.1, I too receive no notification of registration. This could mean a bug has been introduced in the latest versions of LC.
If possible, could you file a report on this issue with out Quality Control team as this will allow us to investigate it further.
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--
This does seem like an issue as when I try my test push stack with 7.0.1, I too receive no notification of registration. This could mean a bug has been introduced in the latest versions of LC.
If possible, could you file a report on this issue with out Quality Control team as this will allow us to investigate it further.
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--
Re: Unable to manage GCM notification
Hi Neil,
I just submitted the issue to the Quality Control.
http://quality.runrev.com/show_bug.cgi?id=14368
Thanks for your help.
Gianluca
I just submitted the issue to the Quality Control.
http://quality.runrev.com/show_bug.cgi?id=14368
Thanks for your help.
Gianluca
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Unable to manage GCM notification
Well done for helping out Neil - Gianluca well done for persevering and filing that bug report, before too long someone else from RunRev (probably Hanson) will respond to to your report and the system will swing into action.
"...this is not the code you are looking for..."
Re: Unable to manage GCM notification
Just an update.
Today I downloaded LCCommunity 7.0.2 (rc 1).
After packing the android apk now the devices using my app are enable to register for GCM messages.
Thanks to all.
Gianluca
Today I downloaded LCCommunity 7.0.2 (rc 1).
After packing the android apk now the devices using my app are enable to register for GCM messages.
Thanks to all.
Gianluca
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Unable to manage GCM notification
Hi Gianluca,
could you update your bug report? It would probably save them some time to test your configurations etc.
Let them work on what is not working.
Kind regards
Bernd
could you update your bug report? It would probably save them some time to test your configurations etc.
Let them work on what is not working.

Kind regards
Bernd
Re: Unable to manage GCM notification
Hi Bernd,
I'll update the bug report but.... I don't think is a miracle
Also Neil had the same problem if you read previous reply on this post...
Maybe something went wrong in 7.0.1 but I think we need to know if they fixed something...
Ciao,
Gianluca
I'll update the bug report but.... I don't think is a miracle

Also Neil had the same problem if you read previous reply on this post...
Maybe something went wrong in 7.0.1 but I think we need to know if they fixed something...
Ciao,
Gianluca
Re: Unable to manage GCM notification
dave.kilroy wrote:sorry to hear that Gianluca and I'm afraid I don't have the relevant experience to help you (maybe some kind expert will chime in soon)
There is a guy called John Craig (splash21.com - who also does MobGUI) who was one of the first to get push notifications going with LiveCode - this thread is a couple of years old and may be too old now but it does include a sample stack http://livecodejournal.com/forum/viewto ... ?f=27&t=55 and video.
Also and finally (the last thing I can think of) have you tried multiple searches here in the Forum?
Dave
EDIT: one other thing, have you tried with different Android devices?
wow!



