Notifications do not arrive when the app is closed because huawei does not have the app activated in phone manager - > protected apps. Is there any way out there in the config.xml to add a tag that makes it protected by default?
Notifications do not arrive when the app is closed because huawei does not have the app activated in phone manager - > protected apps. Is there any way out there in the config.xml to add a tag that makes it protected by default?
This is not due to Ionic, the user must authorize the System Administrator to protect the application in the background, if you want to ask the question you would have to use the plugin cordova-plugin-intent
and make a request to the system in the package com.huawei.systemmanager
your class com.huawei.systemmanager.optimize.process.ProtectActivity
.
Ref: Example in StackOverflow in English for Java and Cordova Intent plugin on Github .