Browse Source

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

Make example works
Mathieu Acthernoene 8 years ago
parent
commit
72128a0d07
2 changed files with 3 additions and 1 deletions
  1. 2 0
      example/ios/Example/Info.plist
  2. 1 1
      lib/permissions.ios.js

+ 2 - 0
example/ios/Example/Info.plist

@@ -57,6 +57,8 @@
 	<string>test</string>
 	<key>NSSpeechRecognitionUsageDescription</key>
 	<string>test</string>
+	<key>NSMotionUsageDescription</key>
+	<string>test</string>
 	<key>UIBackgroundModes</key>
 	<array>
 		<string>bluetooth-peripheral</string>

+ 1 - 1
lib/permissions.ios.js

@@ -20,7 +20,7 @@ const permissionTypes = [
   'notification',
   'backgroundRefresh',
   'speechRecognition',
-  'motion'
+  'motion',
 ]
 
 const DEFAULTS = {