Flutter geolocator

Interesting behaviour.

After each restart of android device, there is a crash with this plugin: https://pub.dev/packages/geolocator

java.lang.RuntimeException: Unable to start receiver rekab.app.background_locator.BootBroadcastReceiver: java.lang.NullPointerException:

Workaround is turn off this:

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

But is there a better solution, without need of removing lines above?

Created 3y | Jan 3, 2022, 9:48:15 AM


Login to add comment