Support Topics Documentation Slack YouTube Blog

Device still not showing under backendless message tab


(Kamohelo) #1

Good day.

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 have done every step in the setup process.
as in…
Android Manifest
<uses-permission android.name=“android.permission.INTERNET “/>
<uses-permission android.name=“android.permission.WAKE_LOCK”/>



AND FOR MY RECEIVER DECLARATION

<intent-filter>

<action android:name=“com.google.android.c2dm.intent.REGISTRATION/>
<category android:name=”[APP PACKAGE NAME]”/>
</intent-filter>
</receiver>
<service android:name=“com.backendless.push.BackendlessPushService”/>
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>();
myChannels.add(“XXXX”);
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

Heres My Application ID
“3FF8E15F—F9DF—E3F3—FF16—5B34A6B8CB00”

Please assist where possible…