Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when call isoCountryCode #19

Open
kodol73 opened this issue Mar 20, 2022 · 0 comments
Open

Crash when call isoCountryCode #19

kodol73 opened this issue Mar 20, 2022 · 0 comments

Comments

@kodol73
Copy link

kodol73 commented Mar 20, 2022

Hi,

isoCountryCode usually works ok, however it sometimes crashes as followes

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(no_iso_country_code, No iso country code, , null)
-- | -- | -- | -- | -- | -- | -- | -- | --
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:177:18)
#2      CarrierInfo.isoCountryCode (package:carrier_info/src/carrier_info.dart:23:12)

when I call it in my code

String? isoCountryCode = await CarrierInfo.isoCountryCode;

Please help to solve this issue

The version of carrier_info is 2.0.4
phone call of the device works ok even when this issue occurs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant