Hi All I am developing an chat app using Quickblox api for android. And 1:1 chat is working fine but my issue is how can i get a notification that some other user also message me during the chat like in other chat app. I check there api but not find anything regarding background notification. There is example for push notification but push is not fit with chat. So can anyone know how to handle this issue or any example to handle it using quickblox. Thanks in advance
If your are offline then QuickBlox will deliver to you offline push notification when someone sends a message
http://quickblox.com/developers/Android_XMPP_Chat_Sample#Push_notifications_to_the_offline_users
You have to enable it in Dashboard
Related
I have developed a chat app using Xamarin, and the app receives push notification when a new chat arrives. The push notifications are delivered through OneSignal platform which uses Firebase for Android and APNS for iOS.
I would like to unsubscribe for push notification from the device itself when a user logouts, so that even if the server sends one, it wont be displayed. I can achieve this in iOS with the following code.
UIApplication.SharedApplication.UnregisterForRemoteNotifications();
What would be the equivalent for this in Android. I have searched a lot in documentation but no luck. Appreciate some help. Even it someone can tell the code in Java or Kotlin, that would do.
In Android you must delete that instance Id to avoid receiving push notifications but also disable auto init so that it doesn't generate a new token registration:
FirebaseMessaging.Instance.AutoInitEnabled = false;
FirebaseInstanceId.Instance.DeleteInstanceId();
I want to develop a one-to-one chat in android by using Firebase. By using
crazzyhit code one-to-one chat is working.
But device to device push notification is not working. I googled device to device notification, but all are showing about sending notification from firebase console. Can anyone give some device to device chat notification tips?
It's possible, you can try OnseSignal. It lets you sending push notifications from device to device.
You have to create php webservices which will let you send notifications to specific devices on behalf of device tocken.
Please Check FireChat to make Person to Person Chat app.
I am using Quickblox Android Chat SDK for my chat module. I have implemented whatever the process stated in Quickblox Site. I was able to register,login and creating session to the Quickblox programmatically and able to chat and chat history successfully. I got struck for some users, I am not able to chat as I am getting 422 error "'{"errors":{"base":["No recipients. At least one user should be subscribed for GCM (Android Push) (through SDK or REST API)"]}}'". But for some users, I am not facing any problem. Please suggest me the solution for this problem.
In means that a user doesn't have a push subscription, so he can't receive pushes
follow this guide to subscribe a user to receive push notifications http://quickblox.com/developers/SimpleSample-messages_users-android#Giving_a_user_a_Push_Notification_subscription
I am trying to implement something similar to Google Cloud Messaging and I have a working XMPP service on my phone and XMPP server configured.
Could someone please tell the architecture on the phone? How does android know when to show a notification for an incoming message? and when to update the application?
For Example, In Google Hangouts, when you get a new message, the notification is displayed and if the user is in the conversation frame, the conversation gets updated.
For notifications you have to go through this tutorial android notifications, the client libraries like smack abstract for you the communication between XMPP Server and clients, you listen to incoming Messages and whenever a message arrives you display a notification. I hope this could help you.
Hi I want to send notifications from android app to facebook. To send facebook notification i got this link : https://developers.facebook.com/docs/concepts/notifications/ But i am not sure how to use this link in android to send notification.
Please can any body guide me for this?
You can't send notifications from an Android app. Tried to POST using the link you provided and got the following error:
{"error":{"message":"(#200) Only web canvas apps can send app notifications","type":"OAuthException","code":200}}
Maybe you could use this one:
https://developers.facebook.com/docs/android/send-requests/
We're not allowed to send notifications from Android app using the notifications API, nor sending App Requests from non game app using Requests APIs. I'm interested too to know how can we notify the user from non-game-android app.