Fixed Location & Storage issues

This commit is contained in:
2024-05-25 11:05:02 +09:00
parent e55674e1b9
commit 6a49aed98d
861 changed files with 80074 additions and 402 deletions

View File

@ -99,13 +99,13 @@ class LocationController extends GetxController {
}
if (position == null) {
gpsDebugMode ? debugPrint("getGpsSignalStrength position is null.") : null;
//gpsDebugMode ? debugPrint("getGpsSignalStrength position is null.") : null;
latestSignalStrength.value = "low";
isGpsSignalWeak = true;
return 'low';
}
final accuracy = position.accuracy;
gpsDebugMode ? debugPrint("getGpsSignalStrength : ${accuracy}") : null;
//gpsDebugMode ? debugPrint("getGpsSignalStrength : ${accuracy}") : null;
/*
if(isSimulationMode){
return _simulatedSignalStrength.value; // GPS信号強度シミュレーション
@ -289,14 +289,14 @@ class LocationController extends GetxController {
//
positionStream = Geolocator.getPositionStream(locationSettings: locationOptions).listen(
(Position? position) {
gpsDebugMode ? debugPrint("Position = ${position}"):null;
//gpsDebugMode ? debugPrint("Position = ${position}"):null;
final signalStrength = getGpsSignalStrength(position);
if (signalStrength == 'low') {
isGpsSignalWeak = true;
gpsDebugMode ? debugPrint("LocationController.getPositionStream : isGpsSignalWeak = ${isGpsSignalWeak}"):null;
//gpsDebugMode ? debugPrint("LocationController.getPositionStream : isGpsSignalWeak = ${isGpsSignalWeak}"):null;
} else {
isGpsSignalWeak = false;
gpsDebugMode ? debugPrint("LocationController.getPositionStream : isGpsSignalWeak = ${isGpsSignalWeak}"):null;
//gpsDebugMode ? debugPrint("LocationController.getPositionStream : isGpsSignalWeak = ${isGpsSignalWeak}"):null;
}
final DestinationController destinationController = Get.find<DestinationController>();

View File

@ -98,7 +98,8 @@ class StringValues extends Translations{
'email': 'Email',
'confirm_password': 'Confirm Password',
'cancel_checkin': 'Cancel Check-in',
'go_here': 'Go Here',
'go_here': 'Show route',
'cancel_route':'Clear route',
'start_rogaining': 'Start Rogaining',
'in_game': 'In Game',
'finish_rogaining': 'Finish Rogaining',
@ -301,7 +302,8 @@ class StringValues extends Translations{
'email': 'ゼッケン番号',
'confirm_password': 'パスワードを認証する',
'cancel_checkin': 'チェックイン取消',
'go_here': 'ここへ行く',
'go_here': 'ルート表示',
'cancel_route':'ルート消去',
'start_rogaining': 'ロゲ開始',
'in_game': '競技中',
'finish_rogaining': 'ロゲゴール',
@ -359,7 +361,7 @@ class StringValues extends Translations{
'could_not_communicate_with_server': 'サーバーと通信できませんでした',
'communication_error_occurred': '通信エラーがおきました',
'checked_in': 'チェックインしました。',
'cancel_checkin': 'チェックイン取り消し',
'cancel_checkin': 'チェックイン取',
'checkin_canceled_for': 'のチェックインは取り消されました',
'error': 'エラー',
'failed_to_cancel_checkin': 'チェックイン取り消しに失敗しました。',
@ -390,6 +392,8 @@ class StringValues extends Translations{
'location_permission_permanently_denied_title': '位置情報の許可が永久に拒否されました',
'location_permission_permanently_denied_message': '位置情報の許可が永久に拒否されました。位置情報の許可を付与するには、アプリ設定を開いてください。',
'open_settings': '設定を開く',
'storage_permission_needed_title': '写真ライブラリへの許可が必要です',
'storage_permission_needed_main': '岐阜ロゲでは、写真ライブラリを使用してスタート・チェックイン・ゴール等の通過照明写真の記録のために、写真ライブラリへの書き込みを行なっています。このためチェックイン時に写真をライブラリに保存する権限が必要です。設定画面で、「岐阜ナビ」に対して、ライブラリに写真の保存を許可するように設定してください。',
'location_permission_needed_title': '位置情報への許可が必要です',
'location_permission_needed_main': '岐阜ロゲでは、位置情報を使用してスタート・チェックイン・ゴール等の通過照明及び移動手段の記録のために、位置情報のトラッキングを行なっています。このためバックグラウンドでもトラッキングができるように位置情報の権限が必要です。設定画面で、「岐阜ナビ」に対して、常に位置情報を許可するように設定してください。',
'open_settings': '設定を開く',