Przeglądaj źródła

增加通讯录权限

Groot 8 miesięcy temu
rodzic
commit
ad5844b603
2 zmienionych plików z 3 dodań i 0 usunięć
  1. 1 0
      ios/Podfile
  2. 2 0
      ios/Runner/Info.plist

+ 1 - 0
ios/Podfile

@@ -45,6 +45,7 @@ post_install do |installer|
       config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
         '$(inherited)',
         'PERMISSION_LOCATION=1',
+        'PERMISSION_CONTACTS=1',
       ]
     end
   end

+ 2 - 0
ios/Runner/Info.plist

@@ -43,6 +43,8 @@
 	</array>
 	<key>LSRequiresIPhoneOS</key>
 	<true/>
+	<key>NSContactsUsageDescription</key>
+	<string>为了通过通讯录邀请好友,请您允许我们访问您的通讯录信息</string>
 	<key>NSLocationAlwaysUsageDescription</key>
 	<string>为给您更好的定位体验,请您允许我们使用精确位置</string>
 	<key>NSLocationWhenInUseUsageDescription</key>