cordova-plugin-autostart icon indicating copy to clipboard operation
cordova-plugin-autostart copied to clipboard

This does not work for Ionic 3

Open wilfredonoyola opened this issue 6 years ago • 6 comments

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`

wilfredonoyola avatar May 14 '18 20:05 wilfredonoyola

it did not work for me too

koyaja avatar Jun 06 '18 11:06 koyaja

for ionic3 ,it works well at Android4.4.2, but it did not wok at Android6.0.0.

luckxiang avatar Jun 08 '18 08:06 luckxiang

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。

luckxiang avatar Jun 20 '18 03:06 luckxiang

Feel free to implement the fix, verify it carefully, update the documentation and then make the pull request to the master branch.

ToniKorin avatar Jun 20 '18 16:06 ToniKorin

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 avatar Dec 14 '19 15:12 MInesGomes

@MInesGomes I'm sorry, the time is too long. I went to C development now.

luckxiang avatar Dec 17 '19 06:12 luckxiang