-
Notifications
You must be signed in to change notification settings - Fork 44
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
IOS not working #42
Comments
Is working for you on android ? I'm trying and doesn't works for android or ios. If working for your on Android please help me or send me you code.. I'm trying many days now to figure out.. Thank you! |
The example in the README is wrong. Use the example from the project itself |
Also project doesn't work... I'm looking so many days how to create an app that can scan beacons nearby and doing something, like notification. |
It is working for me... maybe your beacon? |
This example working and detect to beacons ? Hmmm my beacon is from a company blueup and from configuration app's company works well. Can you help me to fix it and show if it works ? |
This is the code I am using: if (GetPlatform.isAndroid) {
await BeaconsPlugin.setDisclosureDialogMessage(
title: "Need Location Permission",
message: "This app collects location data to work with beacons.");
}
BeaconsPlugin.listenToBeacons(beaconEventsController);
BeaconsPlugin.setDebugLevel(2);
await BeaconsPlugin.addRegion("myBeacon", uuid);
beaconEventsController.stream.listen(
(data) {
if (data.isNotEmpty) {
print("Beacons DataReceived: " + data);
}
},
onDone: () {},
onError: (error) {
print("Error: $error");
});
await BeaconsPlugin.runInBackground(true);
await BeaconsPlugin.startMonitoring;
if (GetPlatform.isAndroid) {
BeaconsPlugin.channel.setMethodCallHandler((call) async {
await BeaconsPlugin.startMonitoring;
if (call.method == 'scannerReady') {
await BeaconsPlugin.startMonitoring;
}
});
}
} |
@leobispo In the addRegion the first option "myBeacon" is option and you can write what ever you want. The second is the proximityUUID? |
@leobispo I tried also your code but not working for me .. Can you help me more please ? How I can do this working ? I have spent a lot of time and I have nothing since then. |
here my code worked now import 'dart:async'; import 'package:beacons_plugin/beacons_plugin.dart'; class BeaconScanner extends StatefulWidget { class _BeaconScanner extends State { final StreamController beaconEventsController = _getIdAttendance() async {
} _onCheckinSubmit() async {
} Future _getId() async { void _showSnackBar(String text) { @OverRide @OverRide Future initPlatformState() async {
} Future _onBackPressed() {
} @OverRide |
Very nice, can you send me a link weTransfer with your code, to my email ([email protected]) please? Thank you! |
@peterpoll you need to specify the region correctly, uuid is case-sensitive |
by the way, the implementation for android does not react at all to the scanned region, and in iOS you need to specify the region, otherwise the scan result will be ignored. in my case, I even had to change the uuid of the beacon |
Are you able to create a mini prototype of your working version? I have now spent a few days investigating why my iBeacon is not displaying on iOS. I have setup the beacons UUID (iBeacon) and configured the code to match (also case sensitive as you've suggested). Project swift file and plist has been updated per example. Working fine on Android but absolutely no response on iOS. The location permission in settings is set to 'Always@ and there are no errors in debug. Using BeaconSet+ app i can see the beacon straight away on the device. I am out of ideas with this package at this point. |
So I just got this (kinda) working.. it seems that as soon as I add in more than one region to scan, iOS doesnt detect any! This fails.. whereas this works and detects the first beacon.. Ideally I need to be able to scan for several regions (note the last 12 chars are different) as configuring the major/minor creates us an limitation that is not ideal to our use case. Has anyone got this working where multiple regions work? |
Hello, you put uuid in region and in ibeacon config? i can find with android, but with iOS I can’t see any beacon. And I don’t have any error. Any suggestion? |
Can you search beacon on ios? |
IOS device cannot scan device beacon ?
The text was updated successfully, but these errors were encountered: