0 down vote favorite
Good morning, I developed a Multi-Device application for Android and IOS, but I have a problem compiling my application in the Application Store mode to distribute in google play.
Some features that work perfectly in Debuger mode will stop working when I compile my application using "Application Store" mode.
Example of some functions that stopped working:
My CheckInternet function, as well as my Datasnap server, my mobile application (Android) can not connect to the server, thus returning the following message: socket access denied.
The following is a function I mentioned.
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 device in Application Store mode? What would be the correct submission of APk on Google Play and then download it?
It's just a hypothesis I'm raising.