iOS GPS 設定によるポップアップ、バックグラウンド処理修正。Android は未確認
This commit is contained in:
@ -49,7 +49,7 @@ class LocationController extends GetxController {
|
||||
|
||||
//===== Akira Added 2024-4-9 start
|
||||
// GPSシミュレーション用の変数を追加 ===> 本番では false にする。
|
||||
bool isSimulationMode = true;
|
||||
bool isSimulationMode = false;
|
||||
|
||||
// GPS信号強度をシミュレートするための変数
|
||||
final Rx<String> _simulatedSignalStrength = Rx<String>('low');
|
||||
@ -93,6 +93,7 @@ class LocationController extends GetxController {
|
||||
return 'low';
|
||||
}
|
||||
final accuracy = position.accuracy;
|
||||
//debugPrint("getGpsSignalStrength : ${accuracy}");
|
||||
if(isSimulationMode){
|
||||
return _simulatedSignalStrength.value; // GPS信号強度シミュレーション
|
||||
}else {
|
||||
@ -346,6 +347,7 @@ class LocationController extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void handleLocationUpdate(LocationMarkerPosition? position) async {
|
||||
if (position != null) {
|
||||
//debugPrint("position = ${position}");
|
||||
|
||||
Reference in New Issue
Block a user