Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beacon Scanning not working when app is in background or terminated #129

Open
PriyankaInoid opened this issue May 5, 2023 · 5 comments
Open

Comments

@PriyankaInoid
Copy link

Not able to scan beacon when my app is in background as well as terminated. I am trying to call beacon scanning functionality in flutter using Background Service but beacon scanning is not working in service and getting Error.

======== Exception caught by services library ======================================================
The following MissingPluginException was thrown while activating platform stream on channel flutter_beacon_event:
MissingPluginException(No implementation found for method listen on channel flutter_beacon_event)

@Kreshnik
Copy link

@PriyankaInoid did you find a solution to this?

@AdnanAliChohan
Copy link

@PriyankaInoid @Kreshnik find any solution?

@Mitsutan
Copy link

I have same issue

10-18 20:47:06.517 16843 16870 E flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method isBroadcasting on channel flutter_beacon)
10-18 20:47:06.517 16843 16870 E flutter : #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332)
10-18 20:47:06.517 16843 16870 E flutter : <asynchronous suspension>
10-18 20:47:06.517 16843 16870 E flutter : #1      FlutterBeacon.isBroadcasting (package:flutter_beacon/flutter_beacon.dart:259)
10-18 20:47:06.517 16843 16870 E flutter : <asynchronous suspension>
10-18 20:47:06.517 16843 16870 E flutter : #2      BeaconFunc.stopBeacon (package:sysdev_suretti/utils/beacon.dart:182)
10-18 20:47:06.517 16843 16870 E flutter : <asynchronous suspension>
10-18 20:47:06.517 16843 16870 E flutter :

@PriyankaInoid
Copy link
Author

yes, I have found the solution. You have to use this library 'https://github.com/alann-maulana/flutter_beacon' and handle all calculation related to becaon when app is in backeground in Android Native and IOS native using Platform Channel.

@Mitsutan
Copy link

yes, I have found the solution. You have to use this library 'https://github.com/alann-maulana/flutter_beacon' and handle all calculation related to becaon when app is in backeground in Android Native and IOS native using Platform Channel.

ah…well…, Is that mean I need to learn kotlin and swift?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants