Is there a way to let the APP not killed; Or let the APP white list added to the cell phone?
CodePudding user response:
Method one: Service set to START_STICKY, will be reset after the kill (wait for 5 seconds), retransmission Intent, keep is the same as before to restart,Method 2: through startForeground sets the process to foreground process, do the reception service, and the foreground application a priority level, unless the system memory is very short, otherwise this process will not be the kill,
Method 3: double process Service: let the two processes to protect each other, one of the after Service is clear, the other is not cleaning process can be immediately restart process,
Try it, maybe useful
CodePudding user response:
Ali cloud vendors channel adaptation scheme: https://help.aliyun.com/document_detail/30067.html? SPM=a2c4g. 11186623.6.590.3 c301962nAaWlJAurora vendor channel adaptation scheme: https://shimo.im/docs/JDx6C99QcxK9Qvxj/read
CodePudding user response:
https://blog.csdn.net/u012922981/article/details/106833811 to integrate the various manufacturers distributors channel application are you busy for a while, I this is integrated pigeons pushEach channel address:
Oppo
https://open.oppomobile.com/Vivo https://dev.vivo.com.cn/home
Xiaomi https://dev.mi.com/console/
Huawe https://developer.huawei.com/consumer/cn/
Meizu https://open.flyme.cn/