Add by default that the app is protected app in Huawei through the code in ionic 3

-1

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?

    
asked by Franco C 30.08.2017 в 18:48
source

1 answer

0

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 .

    
answered by 30.08.2017 в 18:59