bkonyi / FlutterGeofencing

Rough work for Flutter geofencing plugin
BSD 3-Clause "New" or "Revised" License
337 stars 219 forks source link

[Question] What exactly do promoteToForeground() and demoteToBackground() do? #75

Closed evanblasband closed 3 years ago

evanblasband commented 3 years ago

Hi I am curious what exactly promoteToForeground() and demoteToBackground() do? I tried calling them in my callback but got the following error for both, with the respective function. What would be a use case for these?

edit: after looking deeper it doesn't seem that these methods are implemented for iOS, is this true?

 Unhandled Exception: MissingPluginException(No implementation found for method GeofencingService.demoteToBackground on channel plugins.flutter.io/geofencing_plugin_background)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157)
<asynchronous suspension>
#1      GeofencingManager.demoteToBackground (package:geofencing/src/geofencing.dart:124)
<asynchronous suspension>