From 0b9f91ad026c1bff639e93175b6e8d455642cbb8 Mon Sep 17 00:00:00 2001 From: 7c00 Date: Tue, 17 May 2022 23:36:49 +0800 Subject: [PATCH] Fix ios privacy --- lib/ios/Modules/SdkModule.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ios/Modules/SdkModule.swift b/lib/ios/Modules/SdkModule.swift index 61d08069..c902d02f 100644 --- a/lib/ios/Modules/SdkModule.swift +++ b/lib/ios/Modules/SdkModule.swift @@ -6,6 +6,8 @@ class AMapSdk: NSObject { @objc func initSDK(_ apiKey: String) { AMapServices.shared().apiKey = apiKey + MAMapView.updatePrivacyAgree(AMapPrivacyAgreeStatus.didAgree) + MAMapView.updatePrivacyShow(AMapPrivacyShowStatus.didShow, privacyInfo: AMapPrivacyInfoStatus.didContain) } @objc func getVersion(_ resolve: RCTPromiseResolveBlock, reject _: RCTPromiseRejectBlock) {