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?

Erstellt 2y | 03.01.2022, 09:48:15


Melden Sie sich an, um einen Kommentar hinzuzufügen