Przeglądaj źródła

Fixed iOS location issue

wudebin 1 rok temu
rodzic
commit
7ba9f97b69

+ 6 - 2
Strides-APP/app/pages/home/Home.js

@@ -36,7 +36,7 @@ export default class HomePage extends Component {
       stationId: "",
       stationInfo: {},
       stopList: [],
-      hasPermission: isIOS,
+      hasPermission: false,
       permissionDenied: false
     };
     this.isHide = true;
@@ -264,7 +264,7 @@ export default class HomePage extends Component {
       //避免关闭自动移动地图后无法点击按钮移动地图
       this.refresh = true
     }
-    console.log("checkPermission2Geo", refresh);
+    console.log("checkPermission2Geo", refresh, this.state.lastRegion);
     this.checkGPS();
     if (this.state.hasPermission) {
       this.infoGeoLocation();
@@ -338,6 +338,10 @@ export default class HomePage extends Component {
           }, 2000);
         }
       });
+    } else {
+      setTimeout(() => {
+        this.infoGeoLocation(true);
+      }, 1000);
     }
   }
 

+ 4 - 4
Strides-APP/ios/Strides.xcodeproj/project.pbxproj

@@ -1834,7 +1834,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Strides/Strides.entitlements;
-				CURRENT_PROJECT_VERSION = 350;
+				CURRENT_PROJECT_VERSION = 354;
 				DEVELOPMENT_TEAM = 3L3U7K6Q28;
 				ENABLE_BITCODE = NO;
 				"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
@@ -1847,7 +1847,7 @@
 					"$(inherited)",
 					"@executable_path/Frameworks",
 				);
-				MARKETING_VERSION = 3.2.1;
+				MARKETING_VERSION = 3.2.2;
 				OTHER_CFLAGS = (
 					"$(inherited)",
 					"-DFOLLY_NO_CONFIG",
@@ -1887,7 +1887,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Strides/Strides.entitlements;
-				CURRENT_PROJECT_VERSION = 350;
+				CURRENT_PROJECT_VERSION = 354;
 				DEVELOPMENT_TEAM = 3L3U7K6Q28;
 				ENABLE_BITCODE = NO;
 				"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
@@ -1900,7 +1900,7 @@
 					"$(inherited)",
 					"@executable_path/Frameworks",
 				);
-				MARKETING_VERSION = 3.2.1;
+				MARKETING_VERSION = 3.2.2;
 				OTHER_CFLAGS = (
 					"$(inherited)",
 					"-DFOLLY_NO_CONFIG",