AhsanSarwar45 / flutter_boot_receiver

A Flutter plugin for registering Dart callbacks when the Android device boots up.
MIT License
2 stars 2 forks source link

Start app after an app upgrade? #5

Open leaf-node opened 3 months ago

leaf-node commented 3 months ago

In Android, it's possible to automatically start an app after it gets upgraded, in a similar way app restarting after reboot. Is that something you would be interested in adding to your library?

leaf-node commented 2 months ago

I think the code just needs to compare with android.intent.action.ACTION_MY_PACKAGE_REPLACED, and then instructions to add to the AndroidManifest.xml

https://github.com/AhsanSarwar45/flutter_boot_receiver/blob/bea685002c8ac4408ead3a20d2b44a3ca90ca446/android/src/main/java/com/flux/flutter_boot_receiver/BootBroadcastReceiver.java#L16