Open archithakkar21 opened 3 years ago
same problem here. Android work well. but iOS doesn't response anything.
oh... i got it. For Android, if you are inside the geofencing, Android will trigger enter. For iOS, if you are inside geofencing, iOS doesn't trigger. You need to really outside the geofencing area, than enter the geofencing area, than it can trigger..!
How to test:
version: geofencing-0.1.0
The comment above is about running example and the different geofencing behavior in iOS & Android.
I still encounter problem how to install geofencing plugin in my ios flutter.
This is how i solve:
Info.plist -
AppDelegate - I choose swift.. but official example is Objective-c. I am not familiar with both. just try and success.
success
example android working well.
But have problem install android..
The Readme about how to install geofencing plugin in android mislead me.
At first, i try to create Application.kt. but encounter same problem here: pluginregistry-cannot-be-converted-to-flutterengine
and i find that geofencing plugin doesn't follow the new flutter plugin style plugin-api-migration.
This is what i did: add geofencing ^0.1.0 into pubspec.yaml pub get it will automatically add geofencing plugins:
add broadcasReceiver & GeofencingService:
encounter a problem:
fix it by modify geofencing dependency : com.google.android.gms:play-services-location:17+ to 17.0.0
origin:
after:
success
@jackmew having a similar issue on android regarding the plugin registry flutter engine conflict. What exactly was your fix? did you add anything to the Application.java
(or .kt) like in the README? aside from changing the play services location version in the build.gradle.
UPDATE: nvm this did it for me.
In iOS callback method is not working so unable to send data to IsolateNameServer port and retrieve data