New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internet on Android needs android.permission.INTERNET - how to add? #1715
Comments
If your app has an AndroidManifest.xml then the compiler will use that instead. |
Great to hear that there is a solution! I couldn't find this behaviour from the documentation, it would be helpful for newcomers like me if this is mentioned somewhere accessible. Would you like me to send a PR to developer.fyne.io repo? Perhaps this page, my rough proposal:
|
@joonas-fi I think this should be documented, yes--as inevitably I was going to ask this question 👍🏻 |
I've updated for internet on by default from 2.0.2. |
Our upcoming metadata file can turn this off if we need to. Fixes #1715
Resolved on |
Our upcoming metadata file can turn this off if we need to. Fixes #1715
I couldn't use the network from my app, which I found to be surprising. I decompiled the .apk to check
AndroidManifest.xml
to find out it's missing the INTERNET permission.It seems like there isn't a way to add extra permissions from command line, since the permissions are hardcoded:
fyne/cmd/fyne/internal/mobile/manifest.go
Line 79 in 57a9489
Am I expected to supply custom manifest file? I couldn't find from documentation a mention of how to do it.
My workaround was (I'm using
fyne-cross
):$ fyne
fyne-cross
by replacing thefyne
binary with my custom one$ fyne-cross android -image=MY_CUSTOM_IMAGE
The patch was (NOTE: it's missing the also-recommended
ACCESS_NETWORK_STATE
):The text was updated successfully, but these errors were encountered: