2
0 down vote avorite
Good morning, I developed a Multi-device application for Android and IOS, but I have a problem when I compile my application in the Application Store mode to distribute in google play.
Some features that work perfectly in Debuger mode, stop working when I compile my application using "Application Store".
Example of some functions that have ceased to function:
My Checkinternet function, as well as my Datasnap server, my mobile application (Android) cannot connect to the server, thus returning the following message: socket access denied.
The following is the function I referred to.
function CheckInternet : boolean;
begin
result:=false;
try dm.IdTCPClient1.ReadTimeout := 2000;
dm.IdTCPClient1.ConnectTimeout := 2000;
dm.IdTCPClient1.Port := 80;
dm.IdTCPClient1.Host := 'google.com';
dm.IdTCPClient1.Connect;
dm.IdTCPClient1.Disconnect;
result:=true;
except
result:=false;
end;
end;
Is the problem due to me installing an APK on my phone in Application Store mode? Since the correct would be the submission of Apk in Google Play and then the download of it?
It’s just hypotheses I’m raising.
+1, don’t forget to mark your own answer as correct! So it makes it easier for other users to find the way!
– Junior Moreira