Reputation: 33
I build an App that shows an online image in the app as a photo view when I run the app in debug mode it's working and load's the image but I when build an app and install then does not load the images from the internet. I don't really understand what's going on. Does it need storage permission(Note: The image is not downloadable).
I build an App that shows an online image in the app as a photo view when I run the app in debug mode it's working and load's the image but I when build an app and install then does not load the images from the internet. I don't really understand what's going on. Does it need storage permission(Note: The image is not downloadable).
Upvotes: 0
Views: 403
Reputation: 33
Just add the internet permission in AndroidManifest.xml.
**<uses-permission android:name="android.permission.INTERNET"/>**
<application
android:name="io.flutter.app.FlutterApplication"
android:label="projectname"
android:icon="@mipmap/ic_launcher">
.
.
.
</application>
Upvotes: 0
Reputation: 456
Add this permission to your manifest File in => android/app/src/main
Upvotes: 0
Reputation: 86
Go to android/app/src/AndroidManifest.xml
and add
<uses-permission android:name="android.permission.INTERNET"/>
The top part of your AndroidManifest.xml
should look like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.yourappname">
<uses-permission android:name="android.permission.INTERNET"/>
Upvotes: 1
Reputation: 387
If you're try to load image from URL then make sure you have added Internet permission into your manifest file.
In the AndroidManifest.xml
file located at android/app/src/main
you need to add this permission inside the manifest
tag.
<uses-permission android:name="android.permission.INTERNET"/>
Upvotes: 0
Reputation: 592
You need internet access permission.
In the AndroidManifest.xml
file located at android/app/src/main
you need to add this permission inside the manifest tag.
<uses-permission android:name="android.permission.INTERNET"/>
Upvotes: 0
Reputation: 55
add: <uses-permission android:name="android.permission.INTERNET" />
into AndroidManifest.xml
Upvotes: 0