From f67cbcc26940ca5b495b45a41fb3c045d30a85e7 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Tue, 9 Jul 2024 12:16:17 +0200 Subject: [PATCH] update bluetooth description usage ios --- ios/Runner/Info.plist | 4 ++-- lib/Screens/Visit/visit.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 9416507..80266a8 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -27,9 +27,9 @@ LSRequiresIPhoneOS NSBluetoothAlwaysUsageDescription - This app needs location to show content based on location + This app needs bluetooth to scan nearby beacons to show you content based on your location NSBluetoothPeripheralUsageDescription - This app needs location to show content based on location + This app needs bluetooth to scan nearby beacons to show you content based on your location NSCameraUsageDescription This app needs camera access to scan QR codes NSLocationAlwaysAndWhenInUseUsageDescription diff --git a/lib/Screens/Visit/visit.dart b/lib/Screens/Visit/visit.dart index 38968d3..776bc4e 100644 --- a/lib/Screens/Visit/visit.dart +++ b/lib/Screens/Visit/visit.dart @@ -350,7 +350,8 @@ class _VisitPageState extends State with WidgetsBindingObserver { - return WillPopScope( + return PopScope( + canPop: false, child: Scaffold( appBar: CustomAppBar( title: TranslationHelper.get(configuration!.title, visitAppContext), @@ -515,7 +516,6 @@ class _VisitPageState extends State with WidgetsBindingObserver { ], ), ), - onWillPop: () async => false, ); }