M Markos Well-Known Member Licensed User Longtime User Oct 4, 2018 #1 Hi All, I want to have my app running even when the phone screen saver or power saving kicks in. Please direct me to a tutorial or example thanx
Hi All, I want to have my app running even when the phone screen saver or power saving kicks in. Please direct me to a tutorial or example thanx
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2018 #2 There are only very specific things that you can do in the background. Why do you need your app to run in the background? Upvote 0
There are only very specific things that you can do in the background. Why do you need your app to run in the background?
M Markos Well-Known Member Licensed User Longtime User Oct 7, 2018 #3 I made a chatserver that is on Windows, Android and now iOS. So tcp sockets need to be awake to trigger events Upvote 0
I made a chatserver that is on Windows, Android and now iOS. So tcp sockets need to be awake to trigger events
M Markos Well-Known Member Licensed User Longtime User Oct 7, 2018 #4 There are 2 scenarios. 1. No users connected but App has to wake up upon receiving connection tequest at socket level 2. Users connected and App must respond to active connections as well as new connect requests. Does this fall into any existing category to permit background processing? Running phone devices as server opens up a world of posdibilities in the realm of mass server distributed server farms I would humbly think? Cheers for your help as always and guidance Upvote 0
There are 2 scenarios. 1. No users connected but App has to wake up upon receiving connection tequest at socket level 2. Users connected and App must respond to active connections as well as new connect requests. Does this fall into any existing category to permit background processing? Running phone devices as server opens up a world of posdibilities in the realm of mass server distributed server farms I would humbly think? Cheers for your help as always and guidance
Erel B4X founder Staff member Licensed User Longtime User Oct 8, 2018 #5 Not possible. You should use push notifications. Upvote 0
M Markos Well-Known Member Licensed User Longtime User Oct 9, 2018 #6 Will the push notifications permit persistent access or only wake the App for new connection requests. Will it sustain users already connected or close sockets when pushed to the background or sleeping.? A text server or multimedia server uses same principle I would think. Ok so for the ftp example how would I ensure connected users dont get cut off while transfering files or idle for 60secs. Or is it expected they must logon over and over as the server gets pushed to the background? I appreciate and respect apples policy but it surely restricts owners of devices to maximise the potential of their purchaced equipment I must say. Unless Im totally clueless on the solution you suggest and Im missing the perfect fit as the push notification is new to me Upvote 0
Will the push notifications permit persistent access or only wake the App for new connection requests. Will it sustain users already connected or close sockets when pushed to the background or sleeping.? A text server or multimedia server uses same principle I would think. Ok so for the ftp example how would I ensure connected users dont get cut off while transfering files or idle for 60secs. Or is it expected they must logon over and over as the server gets pushed to the background? I appreciate and respect apples policy but it surely restricts owners of devices to maximise the potential of their purchaced equipment I must say. Unless Im totally clueless on the solution you suggest and Im missing the perfect fit as the push notification is new to me
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2018 #7 The answer to your original question is that you cannot keep your app running in the background. Markos said: Ok so for the ftp example how would I ensure connected users dont get cut off while transfering files or idle for 60secs. Click to expand... Your app can request to run for a few minutes when it transfers to the background. Nothing more. Upvote 0
The answer to your original question is that you cannot keep your app running in the background. Markos said: Ok so for the ftp example how would I ensure connected users dont get cut off while transfering files or idle for 60secs. Click to expand... Your app can request to run for a few minutes when it transfers to the background. Nothing more.