Add permissions to your app

update your android and ios configurations to ensure that your app has the correct permissions to stream videos from the internet.

Add the following permission to the AndroidManifest.xml file just after the <application> definition. The AndroidManifest.xml file is found at <project root>/android/app/src/main/AndroidManifest.xml.

<manifest xmlns:android=”http://schemas.android.com/apk/res/android”>

  <application …>

  </application>

  <uses-permission android:name=”android.permission.INTERNET”/>

</manifest>

content_copy

iOS

For iOS, add the following to the Info.plist file found at <project root>/ios/Runner/Info.plist.

<key>NSAppTransportSecurity</key>

<dict>

 <key>NSAllowsArbitraryLoads</key>

 <true/>

</dict>

macOS

If you use network-based videos, add the com.apple.security.network.client entitlement.

Leave a comment

Your email address will not be published. Required fields are marked *