Closed benjaminchevoor closed 3 years ago
Have you tried stop app and run it again? That issue can arise in case when you added dependency in pubspec and made only hot reload.
Hi @kelegorm, thanks for the feedback. I did try killing the app and starting again many times while debugging. This didn't seem to have any effect.
We have one more receiver in manifest:
<receiver android:name="io.flutter.plugins.geofencing.GeofencingRebootBroadcastReceiver"
android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"></action>
</intent-filter>
</receiver>
Also may be you need:
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
Also in application fix register like that:
@Override
public void registerWith(PluginRegistry registry) {
GeofencingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.geofencing.GeofencingPlugin"));
}
Closing as stale.
I am running my app on an Android emulator device (API 27) and I am getting a exception when invoking
await GeofencingManager.initialize();
Am I missing anything? Why I don't I see any usages of the callbackDispatcher() method in the callback_dispatcher.dart file?
I believe I have set up everything on the Android project correctly:
AndroidManifest.xml
HammerApplication.java
MainActivity.java
Really appreciate the help! Thanks!