Page 1 of 3

Unable to manage GCM notification

Posted: Sun Jan 11, 2015 9:09 am
by gliacca
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

Re: Unable to manage GCM notification

Posted: Sun Jan 11, 2015 8:35 pm
by gliacca
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

Re: Unable to manage GCM notification

Posted: Sun Jan 11, 2015 9:01 pm
by dave.kilroy
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

Re: Unable to manage GCM notification

Posted: Sun Jan 11, 2015 9:57 pm
by gliacca
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

Re: Unable to manage GCM notification

Posted: Sun Jan 11, 2015 10:10 pm
by dave.kilroy
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?

Re: Unable to manage GCM notification

Posted: Sun Jan 11, 2015 10:26 pm
by gliacca
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

Re: Unable to manage GCM notification

Posted: Sun Jan 11, 2015 11:24 pm
by gliacca
UPDATE: After installing the LC 7.0.1 on Mac environment I have the same problem.

Re: Unable to manage GCM notification

Posted: Mon Jan 12, 2015 12:50 pm
by LCNeil
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
--

Re: Unable to manage GCM notification

Posted: Mon Jan 12, 2015 2:24 pm
by gliacca
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

Re: Unable to manage GCM notification

Posted: Mon Jan 12, 2015 3:55 pm
by dave.kilroy
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.

Re: Unable to manage GCM notification

Posted: Tue Jan 27, 2015 5:46 pm
by gliacca
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

Re: Unable to manage GCM notification

Posted: Tue Jan 27, 2015 5:50 pm
by dave.kilroy
champion :)

Re: Unable to manage GCM notification

Posted: Tue Jan 27, 2015 6:24 pm
by bn
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

Re: Unable to manage GCM notification

Posted: Tue Jan 27, 2015 10:38 pm
by gliacca
Hi Bernd,
I'll update the bug report but.... I don't think is a miracle :D
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

Posted: Fri Jul 17, 2015 8:23 am
by sphere
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! :twisted: if i go to that URL....i'm instantly banned!!!! My IP is registered. God knows why? What the H*ll did i do??? It's my first visit to that site ever! :evil: :evil: :evil: