Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.
This repository was archived by the owner on Jan 27, 2024. It is now read-only.

iOS 16.4 carrierRegionCode returns "--" #102

@fabienbranchel

Description

@fabienbranchel

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

1.0.0

Flutter doctor

Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.3 22E252 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.78.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

Minimal code example

Code sample
  final _plugin = PhoneNumberUtil();
  String code = await _plugin.carrierRegionCode();

  print(code); // "--"

Current Behavior

On iOS 16.4.1 (a), carrierRegionCode returns "--". It was returning a correct value before.
I'm not sure when it's stop working. With iOS 16, it was fine, probably with iOS 16.1 too. I think issue appears around iOS 16.2 or 16.3.

It's still working on latest iOS 15 version, iOS 15.7.4, and on my Android 11, 12, 13.

Expected Behavior

Returns a correct value.

Steps To Reproduce

  1. Run minimal code example
  2. You can see the print value "--"

Aditional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions