My android device is not registering to receive push notifications.
I have added my server Api key under mobile tab in my console.
I have added SENDER ID into my app eg.( Backendless.Messaging.registerDevice(“SENDER ID”, myChannels, date, asyncCallback));
Both my SERVER KEY and SENDER ID i got from google cloud messaging.
I have added all my manifest configurations accordingly…
Whenever I have to register device ,then it doesnt show under backendless messaging ,Despite my app running handleResponse.
I FEEL STUCK AS I DO NOT KNOW HOW TO HANDLE THIS MATTER .
I’ve tried with my Android device, and it works.
Did you go through the whole steps of our documentation ?
You also can try sample from here:
What did you receive in return for Backendless.Messaging.registerDevice() call?
Yes I have went through every step in the setup process.
<uses-permission android.name="android.permission.INTERNET "/>
AND FOR MY RECEIVER DECLARATION
<category android:name="[APP PACKAGE NAME]"/>
I HAVE REPLACED [APP PACKAGE NAME]
WITH THE FULL PACKAGE NAME OF MY APP.
And in my main Activity…
List<String> myChannels=new ArrayList<String>();
Backendless.Messaging.registerDevice(“SENDER ID”,myChannels, date, AsyncCallback);
To answer your question.
YES. I did follow the documentation and video done on the topic…
As for registering a device?
It always executes handleResponse , with log. i("","App successfully registered ");
I do not know whether I have tackled your questions…
Please suggest where possible as i need to have the issue resolved.
Note* I AM RUNNING THE APP ON A PHYSICAL DEVICE
what is your application id?
My Application ID
Please zip and send your project to firstname.lastname@example.org
note * I have already added my server Api key into my console.
Everything else is inside the project…
I’ve tried register device with the GCMsenderId from your googleApp and have registered my device successfully.
But i noticed, that you set two android server keys. It is a bad practice – you should use one key. Besides this, i think that one of your keys is wrong, please check it.
Sorry for this delay.
I think I have now figured it out.
The reason my application wasnt working was that I was testing it on an Android version 4.
Which it seems its not supported.
I tested the app on android version 5 and it worked perfectly.
I hope someday older versions will also support this feature.
We only officially support Android 5+, which is SDK version 21+. We’re going to mention that in the “Setup” section of the documentation (in case it’s not there already).
im having the same problem
its says “no receiver for package com.example.hellen.deviceregistration”
Can I see your AndroidManifest.xml file, please?
The <receiver> and <service> blocks should be alongside the block, not inside of it.