Pooya1 Active Member Licensed User Jun 30, 2018 #1 Hi My app need to stable service that in all time keep connection in android I used b4j websocket in service and this service must be active when internet is available I understood that Starter service is stable service Can i use this service for connect to server and keep connection? Thanks
Hi My app need to stable service that in all time keep connection in android I used b4j websocket in service and this service must be active when internet is available I understood that Starter service is stable service Can i use this service for connect to server and keep connection? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2018 #2 There is no such term "stable service". If you want the connection to be kept active then you need to use a foreground service with a partial lock (PhoneWakeState). Expect it to be killed at some point. Upvote 0
There is no such term "stable service". If you want the connection to be kept active then you need to use a foreground service with a partial lock (PhoneWakeState). Expect it to be killed at some point.
Pooya1 Active Member Licensed User Jul 1, 2018 #3 Erel said: There is no such term "stable service". If you want the connection to be kept active then you need to use a foreground service with a partial lock (PhoneWakeState). Expect it to be killed at some point. Click to expand... This is chat app and must be active in all time Can i use phone event example connectivityChange or Tick event or other for start service for all time? Upvote 0
Erel said: There is no such term "stable service". If you want the connection to be kept active then you need to use a foreground service with a partial lock (PhoneWakeState). Expect it to be killed at some point. Click to expand... This is chat app and must be active in all time Can i use phone event example connectivityChange or Tick event or other for start service for all time?
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2018 #4 Pooya1 said: Can i use phone event example connectivityChange or Tick event or other for start service for all time? Click to expand... No. You need to have a foreground service with a partial lock. Upvote 0
Pooya1 said: Can i use phone event example connectivityChange or Tick event or other for start service for all time? Click to expand... No. You need to have a foreground service with a partial lock.
Pooya1 Active Member Licensed User Jul 1, 2018 #5 Erel said: No. You need to have a foreground service with a partial lock. Click to expand... Thanks Upvote 0