Support Topics Documentation Slack YouTube Blog

How to build an android chat application ?

Does it work in any of these scenarios?

Regards,
Mark

It doesnt work. You mentioned that Device ID is a randomly generated UUID however a real device serial number has the same number with the one that is been registered on the server by using Backendless.Messaging.registerDevice(…)

Regards,
Anestis

Does the device-to-device scenario work?

Regards,
Mark

I ran the generated app on a device and emulator. Worked just fine for me. I could also set breakpoints in ChatActivity.java and see the messages arriving. See the screenshots below:

http://support.backendless.com/public/attachments/7f92b3f1f2e87c59469b20728c01ebf6.jpg</img>

http://support.backendless.com/public/attachments/e03c4d2d33c04814c1cb016f447d2604.jpg</img>

Hello Mark,

I have the following issue:
http://support.backendless.com/public/attachments/101f1b46bf47f932f3e4da7ca4d3b404.jpg</img>

Do you have any ideas what might be the issue?

Regards,
Anestis

Moreover I have tried to do a basic message publishing but i have the following error message:

06-04 08:25:12.075 14628-14628/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.pushnotification, PID: 14628
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.pushnotification/com.example.pushnotification.MainActivity}: BackendlessException{ code: ‘Internal client exception’, message: ‘null’ }
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)

hello i want chat to be implemented as a module in my app how do i iniate whats you costing and other stuffs ti integrate your chat module in my app

Hi, Shikhar.
There are monthly limits on messages. You’ll need to pay for exceeding these limits.
Here you can read more about limits and prices: https://backendless.com/pricing/backendless-cloud-functional-limits/

I am struggling to enable Google Cloud Messaging API for push notification? when i Click google Cloud Message it opens https://firebase.google.com/docs/cloud-messaging

On what page do you click it?

google console developer page, please have look on attach file.

Sir, I’m using code generator for Chat app, I’m having default channel exception.

Try the following URL:

https://console.developers.google.com/apis/api/googlecloudmessaging/overview

The error says the channel name you’re using is either null or empty.

Thank you sir, I manage to enable API, so where do i get the channel name. please have look on my screenshot.

Make sure to pass the channel name into the API call.

Thanks a lot its working pretty fine now!!