File tree Expand file tree Collapse file tree
example/macos/Flutter/ephemeral
lib/src/core/location_info Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// This is a generated file; do not edit or check into version control.
2- FLUTTER_ROOT=/Users/tusharsharma /Downloads/flutter
3- FLUTTER_APPLICATION_PATH=/Users/tusharsharma /StudioProjects/fa_flutter_ui_kit/example
2+ FLUTTER_ROOT=/Users/tusharf2k /Downloads/flutter
3+ FLUTTER_APPLICATION_PATH=/Users/tusharf2k /StudioProjects/fa_flutter_ui_kit/example
44COCOAPODS_PARALLEL_CODE_SIGN=true
55FLUTTER_BUILD_DIR=build
66FLUTTER_BUILD_NAME=1.0.0
Original file line number Diff line number Diff line change 11#! /bin/sh
22# This is a generated file; do not edit or check into version control.
3- export " FLUTTER_ROOT=/Users/tusharsharma /Downloads/flutter"
4- export " FLUTTER_APPLICATION_PATH=/Users/tusharsharma /StudioProjects/fa_flutter_ui_kit/example"
3+ export " FLUTTER_ROOT=/Users/tusharf2k /Downloads/flutter"
4+ export " FLUTTER_APPLICATION_PATH=/Users/tusharf2k /StudioProjects/fa_flutter_ui_kit/example"
55export " COCOAPODS_PARALLEL_CODE_SIGN=true"
66export " FLUTTER_BUILD_DIR=build"
77export " FLUTTER_BUILD_NAME=1.0.0"
Original file line number Diff line number Diff line change 11import 'dart:async' ;
2+ import 'dart:io' ;
23
34import 'package:fa_flutter_core/fa_flutter_core.dart' ;
45import 'package:fa_flutter_ui_kit/fa_flutter_ui_kit.dart' ;
@@ -67,15 +68,22 @@ class LocationInfoImpl implements LocationInfo {
6768 @override
6869 Future initLocation () async {
6970 if (isMobile) {
70- final permissionStatus = await isLocationPermissionGranted ();
71-
72- if (! permissionStatus) {
73- if (navKey != null ) {
74- await DialogUtils .showAlertDialog (
75- title: 'Location Permission Required!' ,
76- content: defaultLocationReason,
77- actionText: 'Continue' ,
78- navKey: navKey! );
71+ /// For iOS, location will be asked at day start time so not showing this
72+ /// on Splash page.
73+ /// This is done because iOS app gets rejected if we ask for location
74+ /// on splash and if it is disabled, user is asked to turn on the location
75+ /// to use the app
76+ if (! Platform .isIOS){
77+ final permissionStatus = await isLocationPermissionGranted ();
78+
79+ if (! permissionStatus) {
80+ if (navKey != null ) {
81+ await DialogUtils .showAlertDialog (
82+ title: 'Location Permission Required!' ,
83+ content: defaultLocationReason,
84+ actionText: 'Continue' ,
85+ navKey: navKey! );
86+ }
7987 }
8088 }
8189
You can’t perform that action at this time.
0 commit comments