android-push-notification

Is there a way to know if Data Saver is enabled?

╄→尐↘猪︶ㄣ 提交于 2021-02-20 10:26:34
问题 Android 7.0 Nougat added Data Saver feature allowing users to restrict background data of certain apps (including push notifications). When Data Saver is ON, only the apps on the list found in Settings → Data Saver → Unrestricted data access are allowed to receive push notifications and execute background network calls. If Data Saver is OFF and your app is not on the unrestricted list, it's pretty much like setting push notifications disabled. There is a use case in my app where it's waiting

Is there a way to know if Data Saver is enabled?

我只是一个虾纸丫 提交于 2021-02-20 10:14:11
问题 Android 7.0 Nougat added Data Saver feature allowing users to restrict background data of certain apps (including push notifications). When Data Saver is ON, only the apps on the list found in Settings → Data Saver → Unrestricted data access are allowed to receive push notifications and execute background network calls. If Data Saver is OFF and your app is not on the unrestricted list, it's pretty much like setting push notifications disabled. There is a use case in my app where it's waiting

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

Deep Link with Push Notification - FCM - Android

拈花ヽ惹草 提交于 2020-12-28 13:13:11
问题 What I want: I want to send push notification to users. When user tap on that notification, user should navigate to specific activity. What I did: I created one deep link in Firebase console. I implemented FirebaseInstanceIdService & FirebaseMessagingService as well. I'm able to catch Firebase message which I sent from Firebase console. What is the issue: I'm not able to catch the dynamic link what I have created in Firebase console. My code is like below. MyFirebaseInstanceIDService.java

Deep Link with Push Notification - FCM - Android

我与影子孤独终老i 提交于 2020-12-28 13:12:24
问题 What I want: I want to send push notification to users. When user tap on that notification, user should navigate to specific activity. What I did: I created one deep link in Firebase console. I implemented FirebaseInstanceIdService & FirebaseMessagingService as well. I'm able to catch Firebase message which I sent from Firebase console. What is the issue: I'm not able to catch the dynamic link what I have created in Firebase console. My code is like below. MyFirebaseInstanceIDService.java

Is there any way how to get data from push notification using FirebaseMessagingService in background?

十年热恋 提交于 2020-01-16 10:11:52
问题 I'm using FirebaseMessagingService for my push notifications. It is working as intented in app. onMessageReceived is called, I can get notification title and body + data payload and send reaction depends on payload data to my Activity using LocalBroadcastManager . But there is problem with background push notification. This will only show notification in background, but it is not created in onMessageReceived because this function cannot be called if app is in background. According to

Are push notifications delivered to android phones after its disabled in settings?

馋奶兔 提交于 2020-01-04 06:09:04
问题 In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the device? If it is delivered to the device will the notification be passed onto the app? or does the OS block it? Is the device_token invalidated? I am assuming that when we disable notifications, android os communicates these settings to the fcm/gcm server. 回答1: In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the

Are push notifications delivered to android phones after its disabled in settings?

試著忘記壹切 提交于 2020-01-04 06:08:53
问题 In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the device? If it is delivered to the device will the notification be passed onto the app? or does the OS block it? Is the device_token invalidated? I am assuming that when we disable notifications, android os communicates these settings to the fcm/gcm server. 回答1: In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the

firebase_messaging not customizing notification when app is not in foreground

一曲冷凌霜 提交于 2019-12-23 21:19:42
问题 I need to group notifications from firebase about messages comes from users. Firebase push notification is grouping achieved by using **flutter_local_notification** plugin. This is done inside onMessage() callback set up during Firebase configuration. But when app is not in foreground this grouping and other customer styling can not be done. I had given "tag" field in notification section of Firebase push notification. This will show only one notification according to the tag . But i need to