can user Pause and Resume be caused programmatically?

0 votes

I need to test network recovery scenarios, and would like to programmatically force the API to

  1. "pause" and "resume", such that NotificationListener.onUserPaused and .onUserResumed are called
  2. "lose connectivity" such that ConnectionRequestListener.onConnectDone can be called with the various result codes.

#1 is more important than #2, because it seems that there are always connectivity issues with the service anyway that I can test against.

asked Mar 30, 2018 in Flash by kustardking (12 points)

1 Answer

0 votes
Hi,

These scenario arises due to device interupt such as call on mobile phone, intermittent network connectivity or App State like Background, Suspended etc.

These sceario can not be replicated programmatically. Easy way to test this is put your app in background for 7 to 8 seconds and bring it to foreground or try connecting / diconnecting to the network while app is foreground.

Thanks.
answered Apr 2, 2018 by rajeev.etc (1,660 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...