Hi everyone,
Sometimes the computer cannot communicate with the phones, although Ranorex service is still running in foreground (Android)
And on iOS, sometimes while executing the test cases, the phone goes back to homescreen suddently, then.. connection lost
For Android, I created a cronjob to restart Ranorex service by adb (without root)
But on iOS, I don't know how to do that (without jb)
Please help me
Ranorex: 5.4.4
iPod gen 5 (iOS 8.2)
SS Note 2 (Android 4.4.2)
Service:
- Android: 1.8.3
- iOS: 2.1.1
[iOS] Stop and Start Ranorex service from computer
-
- Posts: 11
- Joined: Thu Nov 26, 2015 10:34 am
[iOS] Stop and Start Ranorex service from computer
Last edited by phoenixnghi on Mon Nov 30, 2015 12:23 pm, edited 1 time in total.
-
- Posts: 11
- Joined: Thu Nov 26, 2015 10:34 am
Re: [iOS] Stop and Start Ranorex service from computer
It seems my problem is similar to this topic
ranorex.com/forum/runmobileapp-and-closeapplication-not-working-on-ios-9-t8656.html
But in my case, it goes back to homescreen in the middle of the test caseClose Application:
My app gets removed from the foreground when I call the Host.Local.CloseApplication(), but it doesn't return to the Ranorex Service App. It goes back to the iPhone home screen. At this point, I can't relaunch my app since the Ranorex Service App is not in the foreground.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: [iOS] Stop and Start Ranorex service from computer
Hiphoenixnghi,
May I ask you if you could provide additional information?
Concerning Android:
Generally, I’d recommend using WiFi as connection type because it is more reliable than USB. May I ask you if the problem also occurs when using WiFi?
Concerning iOS:
Does this problem occur on a specific action with your application or does it happen randomly?
Basically, if an application is closed unexpected and expected, the device should return to the Ranorex Service app.
Thank you in advance.
Regards,
Markus (S)
May I ask you if you could provide additional information?
Concerning Android:
Generally, I’d recommend using WiFi as connection type because it is more reliable than USB. May I ask you if the problem also occurs when using WiFi?
Concerning iOS:
Does this problem occur on a specific action with your application or does it happen randomly?
Basically, if an application is closed unexpected and expected, the device should return to the Ranorex Service app.
Thank you in advance.
Regards,
Markus (S)
-
- Posts: 11
- Joined: Thu Nov 26, 2015 10:34 am
Re: [iOS] Stop and Start Ranorex service from computer
Android:
It's weird that Wifi is more stable than USB cable
Yes, I use WiFi all the time, the cable connection is nearly useless, thank God that Android support adb over WiFi, I restart Ranorex service every 2 hours, it seems stable day by day..
iOS:
It seems it occurs when I set value (text) for a search text box, then it returns to home screen
Thank you.
It's weird that Wifi is more stable than USB cable

Yes, I use WiFi all the time, the cable connection is nearly useless, thank God that Android support adb over WiFi, I restart Ranorex service every 2 hours, it seems stable day by day..
iOS:
It seems it occurs when I set value (text) for a search text box, then it returns to home screen
Thank you.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: [iOS] Stop and Start Ranorex service from computer
Hi Hiphoenixnghi,
WiFi is more stable because USB uses ADB for connection the device to your computer. Unfortunately, ADB consumes quite a lot of resources which causes the unstable behavior.
Concerning the iOS issue
May I ask you if you could send us the application under test? This would allow us to reproduce the problem directly in our environment.
Thank you in advance.
Regards,
Markus (S)
WiFi is more stable because USB uses ADB for connection the device to your computer. Unfortunately, ADB consumes quite a lot of resources which causes the unstable behavior.
Concerning the iOS issue
May I ask you if you could send us the application under test? This would allow us to reproduce the problem directly in our environment.
Thank you in advance.
Regards,
Markus (S)
-
- Posts: 11
- Joined: Thu Nov 26, 2015 10:34 am
Re: [iOS] Stop and Start Ranorex service from computer
Hello Markus (S),
Thanks for replying.
For Android app, it's really easy, just go to PlayStore and download the apk but unfortunately we cannot do the same for iOS, I cannot send you the ipa file because of our policy
Thanks for replying.
For Android app, it's really easy, just go to PlayStore and download the apk but unfortunately we cannot do the same for iOS, I cannot send you the ipa file because of our policy
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: [iOS] Stop and Start Ranorex service from computer
Hi Hiphoenixnghi,
Maybe we should continue the analysis of your problems directly by communicating via email.
Therefore, please send an email to [email protected]
Regards,
Markus (S)
Maybe we should continue the analysis of your problems directly by communicating via email.
Therefore, please send an email to [email protected]
Regards,
Markus (S)
-
- Posts: 11
- Joined: Thu Nov 26, 2015 10:34 am
Re: [iOS] Stop and Start Ranorex service from computer
Hi Markus,
Finally, I had to j/b the iPhones and run command via ssh to bring it foreground before running each build
Regards,
Finally, I had to j/b the iPhones and run command
Code: Select all
open ranorex.RxServiceApp
Regards,
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: [iOS] Stop and Start Ranorex service from computer
Hi Hiphoenixnghi,
Since we do not recommend jail breaking your devices I’d like you to get in touch directly. So we can analyze the problem directly with you.
Thank you for your understanding.
Regards,
Markus (S)
Since we do not recommend jail breaking your devices I’d like you to get in touch directly. So we can analyze the problem directly with you.
Thank you for your understanding.
Regards,
Markus (S)
Re: [iOS] Stop and Start Ranorex service from computer
Hi Phoenixnghi,
Thanks.
Did you ever solve your iOS issue? I have been experiencing the same issue for months now.And on iOS, sometimes while executing the test cases, the phone goes back to homescreen suddently, then.. connection lost
Thanks.
-
- Posts: 11
- Joined: Thu Nov 26, 2015 10:34 am
Re: [iOS] Stop and Start Ranorex service from computer
tvu wrote:Hi Phoenixnghi,
Did you ever solve your iOS issue? I have been experiencing the same issue for months now.And on iOS, sometimes while executing the test cases, the phone goes back to homescreen suddently, then.. connection lost
Thanks.
Hi tvu,
Not yet, I had to use a workaround for this problem (pls see my post above)
Perhaps you need to cooperate with Support Team to analyze this issue, good luck

Due to my boss want a quick win for the smoke tests, then maybe Ranorex could be a strong software but I didn't have enough time to investigate more.