I’m new with the API (and with Android programming too), and I have a few questions.
Do
a user need to be logged in, in order to receive a push notification,
or if the device is registered is enough to receive messages?
I mean, there are different things, no? The user registration and the device registration.
Thanks, and sorry if I say obvious things.
Update: see the comment
Hi, Jacob!
User registration and device registration are absolutely different things.
Here you can read about user service: https://backendless.com/documentation/users/android/users_overview.htm
And here are docs for messaging: https://backendless.com/documentation/messaging/android/messaging_overview.htm
I’d offer you to start exploring with our code generation feature and take a look at our messaging sample which comes with Backendless SDK for Android: https://github.com/Backendless/Android-SDK/tree/master/samples/MessagingService
best regards,
Alex
Hello!
thanks. Yes! I was trying the sample app, changing all the variables
( APPLICATION_ID , SECRET_KEY & SENDER_ID ) with the correct values, and the Manifest with all the permissions. In fact, the device appears as registered in the console. When I send a message it appears in the console too. But for some reason I don’t receive any message on the device…
That’s why I asked for the login user, but now I know there are different things.
Am I missing someting? Because I did all the steps…
update: the message appears only in the console if I write it through the app, or trough the console via “broadcast”, but not if I write it as a push notification
So, the messages are SCHEDULED, but I never receive it on the device.
Ok, thanks for all, is working (some problem with the API key, I think, I refreshed it trough the Google Developers Console)
Thankyou!