add proximity uuid for ios
This commit is contained in:
parent
f6b2724c46
commit
7bd94227df
@ -129,11 +129,20 @@ class _VisitPageState extends State<VisitPage> with WidgetsBindingObserver {
|
|||||||
'bluetoothEnabled=${controller.bluetoothEnabled}');
|
'bluetoothEnabled=${controller.bluetoothEnabled}');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final regions = <Region>[
|
|
||||||
Region(
|
final regions = <Region>[];
|
||||||
identifier: 'MyMuseumB'
|
|
||||||
),
|
if (Platform.isIOS) {
|
||||||
];
|
// iOS platform, at least set identifier and proximityUUID for region scanning
|
||||||
|
regions.add(Region(
|
||||||
|
identifier: 'MyMuseumB',
|
||||||
|
proximityUUID: '01122334-4556-6778-899A-ABBCCDDEEFF0'));
|
||||||
|
} else {
|
||||||
|
// Android platform, it can ranging out of beacon that filter all of Proximity UUID
|
||||||
|
regions.add(Region(identifier: 'MyMuseumB'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (_streamRanging != null) {
|
if (_streamRanging != null) {
|
||||||
if (_streamRanging!.isPaused) {
|
if (_streamRanging!.isPaused) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user