Page 1 of 1

Push Notification using Firebase

Posted: Sun Feb 11, 2018 3:30 am
by cusingerBUSCw5N
I have tried following the instructions for Push Notification (http://quality.livecode.com/show_bug.cgi?id=18075) using Google and Firebase and only receive "MismatchSenderID"

I have attached the sample code when Google was using GCM, with a change in the send address to https://fcm.googleapis.com/fcm/send

Do I have to change any of this code or have to add any sdk or other files to make this work?

I get the device to acknowledge that it is registered... and the senderIDs for both the device being registered and the app sending the message are the same....so I'm not sure what is mismatched.

Has anyone done this successfully? Thanks!
AndroidGCM.zip
(3.28 KiB) Downloaded 203 times

Re: Push Notification using Firebase

Posted: Sun Feb 18, 2018 4:59 pm
by cusingerBUSCw5N
does the lack of response mean it can't be done?

Thanks

Re: Push Notification using Firebase

Posted: Sun Feb 18, 2018 5:24 pm
by bogs
Not necessarily, as there are many ways to do almost anything. I couldn't answer your question, though, since I don't have any familiarity with mobile of any kind, so in my case in this instance it is simply ignorance that prevents me from helping.

Other people more familiar with mobile dev. may not have encountered this particular problem, and therefore don't have a resolution to offer.

Alternately, they just might not have seen this thread, as different people view the forum in different ways.

My own take on it is that if there is sufficient will, there is *always* going to be a way to do something, and even if Lc's own language doesn't cover it, it allows you to delve into other languages such as .js to get something done as an example.

Hopefully this bump Image helps get the question to someone's attention that may have a better answer for you :)

Re: Push Notification using Firebase

Posted: Tue Feb 20, 2018 5:40 pm
by LiveCode_Panos
Hi all,

The lesson on How to use Push Notifications on Android (as wells the sample stack) has been updated:

http://lessons.livecode.com/m/4069/l/59 ... th-android

Hope this helps,
Panos
--