I am new to react native and some how I have implemented Push Notifications for android and ios. payload is received when notification is received on the phone and sits in notification tray
But when I click the notification application is launching MainActivity of android but I tried to but get same payload on application load in react native and failed to receive that
I have looked for the documents on the web and found that some of the people are working with deeplinking concept for the same.
I have tried few things and failed any overview is thankful.
Related
I am working on one product using CRA, Service Worker and PWA. Everything is working fine in both iOS and Android devices. But I need push notification for my new functionalities launched in my pwa for end users.
In Android using firebase and push notification api its possible to implement but in iOS I am not able to implement as push notification is not supported in any of the iOS version.
Please suggest how to implement or is any way available for sending push notification in iOS devices also.
my react-native keeps crashing when I try to open a push notification on android. I am using firebase for the notification but using react-native-push-notification to open the notification. Please might I be doing wrong? I am using only on useLinking. This is the error I get when you try to open the notification on my android. PLease why should i do?
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'm using React Native and this notification plugin to catch GCM notifications on Android. But while they're showing up fine in the Notifications Panel, I don't get the notification "banner" I was expecting. How do I make Android show notifications like this:
Thanks.
I'm using PushWoosh services for handling push notifications on my PhoneGap based app.
But i have a problem with handling native push messages.
If i send the push notification over PushWoosh API or Management Panel it comes to device like this:
{"title":"test message","collapse_key":"do_not_collapse","from":"400481817113","onStart":false,"foreground":true,"p":"["}
But if i send the push notification via Google Native Push Services with this payload:
{"title":"test title"}
It comes to device as:
{"message":"{\"title\":\"test title\"}","collapse_key":"do_not_collapse","from":"400481817113","onStart":false,"foreground":true}
So this cause the title not shown on the notification ğanel if i send the push message over Google Services.
Here's my question: How can resolve this? What is the best way to show title on notification panel with sending message via Google?
Edit:
I found the problem on myself :) My code was using json_encode as twice to encode the message. I remove one of them and the problem was
resolved.