flutter_sim_country_code icon indicating copy to clipboard operation
flutter_sim_country_code copied to clipboard

`PlatformException` when used in a device without a SIM card

Open magiruuvelvet opened this issue 2 years ago • 0 comments

During testing of an application in TestFlight on iOS, I encountered a problem when testing on an iPhone without SIM card inserted (SIM card removed long time ago, device still in use for testing). I have access to Sentry and the source code of the app I'm testing, but can't compile it.

The issue is already resolved in the app, but I want to make sure if this is expected behavior if the device has no SIM card inserted.

PlatformException flutter_sim_country_code.dart in FlutterSimCountryCode.simCountryCode
PlatformException(SIM_COUNTRY_CODE_ERROR, Error getting country, null, null)

If this is an expected exception. I still hope this issue helps other developers to correctly handle the case for devices without a SIM card.

magiruuvelvet avatar Sep 18 '23 07:09 magiruuvelvet