0

I'm using Google Play services location API on Android and I'm trying to figure out how to test the onConnectionSuspended(int cause) callback which is part of GoogleApiClient.ConnectionCallbacks.

I've tried turning off WiFi, GPS, etc but I haven't been able to get this callback to trigger. The device I am testing on does not have a cellular service provider so I figured turning both of those off would work...

Does anyone have any ideas?

Thanks

lorenzo
  • 494
  • 6
  • 23

1 Answers1

1

The selected answer here describes how you can simulate/test being disconnected from Google Play Service. What is important is to be disconnected from the play service and not necessarily the Internet - as you seem to have assumed in your testing. Hope this helps!

Community
  • 1
  • 1
ishmaelMakitla
  • 3,784
  • 3
  • 26
  • 32