haukebr
November 14, 2017, 2:32pm
1
Hi,
I am trying to build a native android app and need to ask for the permission to use internet on installation.
I’ve read that I can set permissions within the app.json, but not the internet permission? Or do I have to create an android manifest xml?
Thanks very much!
Hauke
edgar
November 14, 2017, 7:25pm
2
Hi,
Have you looked through this list?
https://docs.expo.io/versions/latest/guides/configuration.html#permissions
If the one you want isn’t there, then you might need to detach and manipulate the project’s permissions yourself.
haukebr
November 14, 2017, 8:32pm
3
Yes I’ve been looking through this list, but internet is not on there. I
can’t believe I am the first one running into the problem of not being able
to use the internet connection in a standalone app - that’s such a basic
feature, isnt it?
edgar
November 14, 2017, 9:45pm
4
Are you having some kind of issue though? Are you getting an issue in runtime with internet access?
haukebr
November 15, 2017, 7:08am
5
Yes, right at the start I am getting a json through ajax. This fails
completely.
samee
November 15, 2017, 7:45am
6
hey, I believe android allows the internet permission by default, but I may be wrong.
would you mind posting your code in a snack ?
haukebr
November 15, 2017, 2:06pm
7
I’ve made a snack: https://snack.expo.io/@haukebr/dronequestions
On that simulator it works perfectly fine on iOS but not android. The Server call is in line 66. Do you see any errors?
thetc
November 15, 2017, 7:23pm
8
I think it may be a certificate issue? Fetching over http is working fine
looot
February 23, 2021, 8:16am
9
@haukebr
I’m also getting faceing this issue,
If you solved the problem can you tell.
Thanks for your help