- Home /
Device Not showing GCM messages when the application is off
I saw some threads asking about this, but no answers... I'm using the GCM plugin to receive push notification from the GCM. I'm sending the notification using the GCM REST api. It works. the GCM respondes correctly, and when i'm in the app, i receive the message and can see it's data. But i wanna receive a notification when the app is shut down. The logcat shows that the message arrives, but then i get this line: "Native libraries not loaded - dropping message for GCMReceiver.OnMessage"
What does it mean? What am i missing? i don't even know if it's the manifest, or something inside unity or my code. Please help
Answer by ShimonKinkajoo · Mar 21, 2017 at 10:59 AM
[SOLVED] !!!! Well, that was easy. It has nothing to do with "Native libraries" or anything. The JSON of the message itself, must contain those three fields:
"data" : {
"ticker": "ticker text",
"content_text": "content text",
"content_title": "title text"
}
i'm still just making my first steps towards actually using this in the project, but i think i can work with this. Since there are quite a few followers to this question, i thought i'll post the answer right away
I don't think this really has to be the structure of every GC$$anonymous$$ message that is passed to the device. are you interacting with GC$$anonymous$$ yourself, or using a 3rd party service (like Urban airship or $$anonymous$$ixpanel) ?
Your answer
Follow this Question
Related Questions
How can I receive all firebase push notifications? 0 Answers
Help with the new Mobile Notification System in Unity 1 Answer
Why does my editor throw an error using firebase plugin? 1 Answer
Remote Notifications - Triggered by user or not 2 Answers
Custom push notification sound in android build doesn't work 0 Answers