rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
289 stars 330 forks source link

Restart service on device reboot (Android only) Not Working #279

Open socialpixe opened 3 years ago

socialpixe commented 3 years ago

Everything working fine. But when we are restarting the App, the background service is not starting automatically.

` Add the boot receive permission to AndroidManifest.xml: .. < uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" / > .. Register BootBroadcastReceiver inside application tag: <application ... ... ...

<receiver android:name="rekab.app.background_locator.BootBroadcastReceiver"
        android:enabled="true">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED"/>
        </intent-filter>
    </receiver>

... ... ... `

Used this for the implementation, but not working.

Kindly help with this.

lasd14 commented 2 years ago

Same here, any fix?

elycabrall commented 2 years ago

same