QuisApp / flutter_contacts

MIT License
83 stars 138 forks source link

Attempt to present <CNContactPickerViewController> which is already presenting <FlutterViewController> #141

Closed aleaforny closed 3 months ago

aleaforny commented 10 months ago

With the simple following code:

TextButton(
  onPressed: () async {
    final contact = await FlutterContacts.openExternalPick();
  },
  child: Text("Import contact")
),

Works perfectly in Android. But on iOS, nothing happens. No error message, nothing, the picker isn't displayed.

After running debugging on Xcode, here the only message displayed when clicking on the text button: [Presentation] Attempt to present <CNContactPickerViewController:0x....> on <Runner.SplashViewController: 0x7.....> (from <Runner.SplashViewController: 0x7f......> which is already presenting <FlutterViewController: 0x7f3........>.

What is causing this issue? Thanks a lot

joachim-quis commented 3 months ago

With no additional info, it's difficult to help. Please re-open with more details (code, flutter doctor -v, etc).