Looks like there’s a way to interact with native code in Flutter:
From what I understand, you’d need to create a
- first, invoke it from Flutter into native, and on the native side you handle the invocation to set up the Proximity Observer, your Proximity Zones, and start observing
- then, in the Proximity Zone’s enter/exit/context-changed events, invoke it from the native side, into Flutter, and on the Flutter side handle the event (update your app’s state/UI)
For example, on iOS, I see that
setMethodCallHandler: for handling Flutter => native invocations, and
invokeMethod:arguments: for doing native => Flutter invocations.