You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On an Android 6.0.1 Huawei (Emui 4.0), it is required to add my app to the list of "protected apps" if I want to receive notifications when the app is killed. This was not necessary when using phonegap-plugin-push with cordova-android v6.3.0.
Expected Behaviour
You don't need to do anything as a user, to properly receive notifications when the app is killed.
Actual Behaviour
You need to do some manual work on the phone in order to properly receive notifications when the app is killed.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
On a Huawei with EMUI 4.0, create a cordova app using cordova 10 and cordova-android 9. For compatibility, refer to this post.
Init cordova-plugin-push (v2) like in the documentation. Install, open and kill the app.
Send a notification from the server and confirm no notification appears.
Go to setting->advanced settings->battery management->protected apps->check your app
Reproduce step 3 and confirm a notification appears this time
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Available Android targets:==============] 100% Fetch remote repository...
id: 1 or "android-23"
Name: Android API 23
Type: Platform
API level: 23
Revision: 3
id: 2 or "android-26"
Name: Android API 26
Type: Platform
API level: 26
Revision: 2
id: 3 or "android-28"
Name: Android API 28
Type: Platform
API level: 28
Revision: 6
id: 4 or "android-29"
Name: Android API 29
Type: Platform
API level: 29
Revision: 5
Project Setting Files:
config.xml:
MyApp
MyApp
MyApp
Background location tracking is required for our app so we can tell you if there is a visit or an event next to your location (only for the users who agreed to subscribe)
Background location tracking is required for our app so we can tell you if there is a visit or an event next to your location (only for the users who agreed to subscribe)
Background location tracking is required for our app so we can tell you if there is a visit or an event next to your location (only for the users who agreed to subscribe)
Device motion updates help determine when the device is stationary so the app can save power by turning off location-updates
We use Appsflyer to handle deeplinks easier and not for tracking the user's data
CFBundleURLSchemes
mydomain
applinks:mydomain.onelink.me
Bug Report
On an Android 6.0.1 Huawei (Emui 4.0), it is required to add my app to the list of "protected apps" if I want to receive notifications when the app is killed. This was not necessary when using phonegap-plugin-push with cordova-android v6.3.0.
Expected Behaviour
You don't need to do anything as a user, to properly receive notifications when the app is killed.
Actual Behaviour
You need to do some manual work on the phone in order to properly receive notifications when the app is killed.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Emui 4.0 (Android 6.0.1)
(Android) Device Vendor (e.g. Samsung, HTC, Sony...)
Huawei
cordova info
PrintoutLogs taken while reproducing problem
V/AlarmManager(31697): set(PendingIntent{41b658f: PendingIntentRecord{63d09f0 com.google.android.gms broadcastIntent}}) : type=2 triggerAtTime=2333028103 win=0 tElapsed=2333028103 maxElapsed=2333028103 interval=0 flags=0xd I/SendBroadcastPermission(31419): action:com.google.android.c2dm.intent.RECEIVE, mPermissionType:0 I/SendBroadcastPermission(31419): action:com.google.android.c2dm.intent.RECEIVE, mPermissionType:0 W/GCM (31419): broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.some.id (has extras) }
The text was updated successfully, but these errors were encountered: