Skip to content

PlatformException when used in a device without a SIM card #15

@magiruuvelvet

Description

@magiruuvelvet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions