Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ios/Discourse/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
</dict>
</dict>
<key>NSCameraUsageDescription</key>
<string>Allows the app to upload images from your camera into a Discourse post.</string>
<string>Allows the app to use the camera for video calls on your Discourse sites, and to upload images from your camera into a Discourse post.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string/>
<key>NSMicrophoneUsageDescription</key>
<string>Allows the app to upload audio and video into a Discourse post.</string>
<string>Allows the app to use the microphone for voice and video calls on your Discourse sites, and to upload audio and video into a Discourse post.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allows the app to upload images from your library into a Discourse post.</string>
<key>NSUserActivityTypes</key>
Expand All @@ -105,6 +105,7 @@
</array>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>fetch</string>
<string>remote-notification</string>
</array>
Expand Down
4 changes: 4 additions & 0 deletions js/screens/WebViewScreenComponents/WebViewComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ class WebViewComponent extends React.Component {
applicationNameForUserAgent={this.state.userAgentSuffix}
allowsBackForwardNavigationGestures={true}
allowsInlineMediaPlayback={true}
allowsPictureInPictureMediaPlayback={true}
allowsAirPlayForMediaPlayback={true}
mediaPlaybackRequiresUserAction={false}
mediaCapturePermissionGrantType={'grantIfSameHostElsePrompt'}
allowsFullscreenVideo={true}
allowsLinkPreview={true}
hideKeyboardAccessoryView={!Platform.isPad}
Expand Down
Loading