particle-iot / particle-android

Particle Open Source for Android
Apache License 2.0
37 stars 38 forks source link

Update mobile apps to use Reliable SIM Management conventions like the console #105

Closed monkbroc closed 3 years ago

monkbroc commented 3 years ago

doActivateSim() throws an exception when the status is not 504 so the previous code to handle 504 never ran. When a SIM took too long to activate, the setup failed with Setup has encountered an error and cannot continue (default error in MeshFlowExecutor.kt)

Use the retrySimAction helper when activating a SIM as part of the Gen 3 setup. This will retry 4 times and if the operation isn't complete, it will show SIM activation is ongoing and taking a long time to finish. Wait for it to complete and try again.

Steps to test:

monkbroc commented 3 years ago

Thanks Jens!

jensck commented 3 years ago

Worked as expected :+1: