File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
kotlin/com/pravera/flutter_foreground_task/service Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1414 <intent-filter >
1515 <action android : name =" android.intent.action.BOOT_COMPLETED" />
1616 <action android : name =" android.intent.action.MY_PACKAGE_REPLACED" />
17+ <!-- This is required on HTC devices to support their "quickboot" feature -->
18+ <action android : name =" android.intent.action.QUICKBOOT_POWERON" />
1719 </intent-filter >
1820 </receiver >
1921 <receiver
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ class RebootReceiver : BroadcastReceiver() {
3333 val options = ForegroundTaskOptions .getData(context)
3434
3535 // Check whether to start the service at boot intent.
36- if (intent.action == Intent .ACTION_BOOT_COMPLETED && options.autoRunOnBoot) {
36+ if ((intent.action == Intent .ACTION_BOOT_COMPLETED ||
37+ intent.action == " android.intent.action.QUICKBOOT_POWERON" ) && options.autoRunOnBoot) {
3738 return startForegroundService(context)
3839 }
3940
You can’t perform that action at this time.
0 commit comments