- Home /
Download data from FTP on Android
I'm trying to get json data from the ftp server using FtpWebRequest. Everything works fine on standalone windows. Anync downloading method works as well. But when I try to do the same on Android I get SocketException : Access denied. Why could it be and how to fix it? I use the same credentials.
I've found out, that the problem dissapears if I set Development build On. But I need it to work into release build too and I can't find any permission difference or something like that between these options.
What does your manifest file look like? Do you have permissions set for INTERNET?
I've found the root of the problem. It was necessary to change Internet Access from Auto to Require, because despite of the fact that the app asked for a permission to use internet, there was no internet in result. I don't know is it unity's bug or not, but it could've been much easier to resolve if the error said No Internet access, or something like that. Anyway your answer is pointing in the correct way. I wish you could answered me hours ago :)
Your answer
Follow this Question
Related Questions
How do you copy PersistentDataFolder between devices? 2 Answers
Strange data usage android 1 Answer
How to get connected wifi BSSID ? 1 Answer
is it safe to save info in PlayerPrefs? 2 Answers