cordova-plugin-autostart
cordova-plugin-autostart copied to clipboard
This does not work for Ionic 3
Here ionic info
`cli packages: (/Users/wilfredonoyola/workspace/statusfy/sf-ionic-1/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.9
Cordova Platforms : android 6.3.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
Node : v6.11.3
npm : 3.10.10
OS : macOS High Sierra
Xcode : Xcode 9.3 Build version 9E145
Environment Variables:
ANDROID_HOME : /Users/wilfredonoyola/Library/Android/sdk/
Misc:
backend : pro`
it did not work for me too
for ionic3 ,it works well at Android4.4.2, but it did not wok at Android6.0.0.
I use the launcher APP Instead of cordova-plugin-autostart,and I know why it did not wok at Android6.0.0. because the Android6.0.0 has a White list,it only alow app on White list to receive ACTION_BOOT_COMPLETED。 your app not on it。
Feel free to implement the fix, verify it carefully, update the documentation and then make the pull request to the master branch.
I use the launcher APP Instead of cordova-plugin-autostart, @luckxiang How do you use https://www.npmjs.com/package/@ionic-native/app-launcher to autostart an app? Is it possible to catch the event when app is going to close?
@MInesGomes I'm sorry, the time is too long. I went to C development now.