浏览代码

Merge pull request #212 from yonahforst/peterlau-motion-permission-request-fixed

Make example works
Mathieu Acthernoene 7 年前
父节点
当前提交
72128a0d07
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
    0
      example/ios/Example/Info.plist
  2. 1
    1
      lib/permissions.ios.js

+ 2
- 0
example/ios/Example/Info.plist 查看文件

57
 	<string>test</string>
57
 	<string>test</string>
58
 	<key>NSSpeechRecognitionUsageDescription</key>
58
 	<key>NSSpeechRecognitionUsageDescription</key>
59
 	<string>test</string>
59
 	<string>test</string>
60
+	<key>NSMotionUsageDescription</key>
61
+	<string>test</string>
60
 	<key>UIBackgroundModes</key>
62
 	<key>UIBackgroundModes</key>
61
 	<array>
63
 	<array>
62
 		<string>bluetooth-peripheral</string>
64
 		<string>bluetooth-peripheral</string>

+ 1
- 1
lib/permissions.ios.js 查看文件

20
   'notification',
20
   'notification',
21
   'backgroundRefresh',
21
   'backgroundRefresh',
22
   'speechRecognition',
22
   'speechRecognition',
23
-  'motion'
23
+  'motion',
24
 ]
24
 ]
25
 
25
 
26
 const DEFAULTS = {
26
 const DEFAULTS = {