push-notification

fcm push notification not working in one plus 6 mobile

十年热恋 提交于 2021-02-18 22:35:34
问题 FCM push notification is working in following devices properly when the device is in the background, foreground and also when an app is close by swiping from a tray. Brandname (android-Version) Micromax (5.1) Motorola (7.1.1) Nokia (8.1.0) Samsung (8.0.0) Nexus (8.1.0) xiaomi (7.1.2) But in case of oneplus, fcm notification is not working when an app is closed by swiping from a tray, but work properly when an app is in foreground and background. Device Version OnePlus 8.1.0 But when I

How to access payload of HMS push notifications?

你。 提交于 2021-02-14 22:24:18
问题 I have published an Android app on Huawei AppGallery and am able to send push notifications from my app backend server via HMS Push Service to the mobile phone as described below. However, I wonder how to access the push notification payload in the app: Here is how I currently send push notifications - First, my backend POSTs to https://login.vmall.com/oauth2/token the following: grant_type=client_credentials& client_id=MY_APP_ID& client_secret=MY_APP_SECRET and successfully gets an access

Having trouble using MessagingCenter to send a message from Android MainActivity to view model class not in Android project

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 17:00:19
问题 I attempted to follow the instructions found here to add a MessagingCenter subscribe action on a notification tap that would open a specific view. Somewhere my Send / Subscribe aren't talking to each other and I just can't see where. The details of the messaging center are still new to me so I'm sure I just used the wrong class or sender somewhere. The code below has since been modified from what was shown to me in the link. The idea is still roughly the same though. Here's the

Having trouble using MessagingCenter to send a message from Android MainActivity to view model class not in Android project

半腔热情 提交于 2021-02-11 16:58:46
问题 I attempted to follow the instructions found here to add a MessagingCenter subscribe action on a notification tap that would open a specific view. Somewhere my Send / Subscribe aren't talking to each other and I just can't see where. The details of the messaging center are still new to me so I'm sure I just used the wrong class or sender somewhere. The code below has since been modified from what was shown to me in the link. The idea is still roughly the same though. Here's the

Send push notification to people nearby through Firebase Cloud Function without manually managing push tokens?

十年热恋 提交于 2021-02-11 15:59:27
问题 Seems like majority of solutions here require the developer to manually save each user's push token in addition to Firebase saving these tokens as well, then iterate through these and send out notifications. This is not really desirable since I would be storing push tokens in two separate places and need to make sure their lifecycle management is synchronized, which is error prone 😢Is there a better way? Some options I considered: Give each user a person/unique topic, then map out a

Send push notification to people nearby through Firebase Cloud Function without manually managing push tokens?

纵饮孤独 提交于 2021-02-11 15:59:04
问题 Seems like majority of solutions here require the developer to manually save each user's push token in addition to Firebase saving these tokens as well, then iterate through these and send out notifications. This is not really desirable since I would be storing push tokens in two separate places and need to make sure their lifecycle management is synchronized, which is error prone 😢Is there a better way? Some options I considered: Give each user a person/unique topic, then map out a

Flutter - How to format title and body of notification in background?

百般思念 提交于 2021-02-11 15:01:42
问题 I am trying to display localized notification in flutter using firebase_messaging, I am getting a json with 3 language strings in body of a notification like so: {"it": "italian text", "de": "german text", "en": "english text"} As of now, it is showing the whole json string in the notification tray. How can I select the appropriate language text from the json and show in notification when app is in background? myBackgroundMessageHandler this function is never called. Thanks. 回答1: I could not

Flutter - How to format title and body of notification in background?

十年热恋 提交于 2021-02-11 14:59:19
问题 I am trying to display localized notification in flutter using firebase_messaging, I am getting a json with 3 language strings in body of a notification like so: {"it": "italian text", "de": "german text", "en": "english text"} As of now, it is showing the whole json string in the notification tray. How can I select the appropriate language text from the json and show in notification when app is in background? myBackgroundMessageHandler this function is never called. Thanks. 回答1: I could not

node.js and AWS Lambda Function continue function execution after callback

若如初见. 提交于 2021-02-11 14:41:16
问题 I am trying to use a lambda function to alter a database and then send a push notification. I don't want to wait for the push notification server to reply. In the occasional case that the push notification is unsuccessful, that is not a concern. It is more important that the function executes in a timely manner. Currently I'm using the following two functions. Everything works as expected except that there doesn't seem to be any time saving. ie, when there is no device token and push is not

Cannot register device in Azure NotificationHub on iOS, no callbacks

浪尽此生 提交于 2021-02-11 14:21:52
问题 I'm trying to set up push notifications via Azure NotificationHub (using these guides). Android went fine, but iOS... No matter what I do, I do not receive any callbacks from RegisterNative / RegisterTemplate methods of SBNotificationHub , and no registrations appear in the hub. My code (pretty straightforward): public static void SubscribeToAzure(NSData deviceToken, string[] subscriptionTags = null, bool bUnsubscribe = false) { try { var Hub = new SBNotificationHub(AppConstants