Skip to content
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

No network connection #10

Open
muellerr opened this issue Apr 26, 2018 · 5 comments
Open

No network connection #10

muellerr opened this issue Apr 26, 2018 · 5 comments

Comments

@muellerr
Copy link

I'm currently writing my first android app that requires an expansion file. This library seems very interesting for this task. Unfortunately I'm having a bit of a hard time to get it running. On one device the app crashes right away and on another I noticed that the call to "DownloaderService.startDownloadServiceIfRequired" always returns the status NETWORK_NO_CONNECTION. Do you have any idea what might cause this behavior?

@vadymhimself
Copy link

vadymhimself commented Apr 27, 2018

@muellerr I believe that this issue is caused by the change of the targetSdkVersion. The library now requires runtime permissions. I will investigate this issue, thank you. As a temporary fix, you may want to ask the user for a runtime permission

@muellerr
Copy link
Author

@Bolein thank your for your reply. I have all necessary permissions in the app manifest file as described on the developers.android site. I thought these should suffice for network access. Which particular permission would I have to request at runtime?

@vadymhimself
Copy link

@muellerr I believe it's the external storage rw permission. I'll have to look closely to the issue to tell for sure

@vadymhimself
Copy link

Since I don't have much time currently, I'd ask @dhleong to also have a look at this

@muellerr
Copy link
Author

@Bolein thanks for your help. I actually added a check for rw permissions. They are both given so that does not resolve my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants