Closed niektemme closed 6 years ago
What code did you use to add the contact? What fields did you set?
For the code I used the example in this git repository. (see git status below).
Fields that I set (sorry for not giving a complete example earlier). The fields here refer to the UI in the simulator of the running flutter contacts plugin example app. 1) First name, Value: Aatest3 2) Last name, Value Aatest4 3) Phone, Value 48326903
Nicolaass-MacBook-Pro:flutter_contactsn niek$ git status On branch master Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add
modified: example/ios/Flutter/flutter_assets/LICENSE
modified: example/ios/Podfile.lock
modified: example/ios/Runner.xcodeproj/project.pbxproj
Untracked files:
(use "git add
example/ios/Flutter/flutter_assets/kernel_blob.bin
example/ios/Flutter/flutter_assets/platform.dill
no changes added to commit (use "git add" and/or "git commit -a")
Just wanted to give an update on this issue. I tried reverting back to version 0.5 of the contacts pluging. This by checking out the git repo at tag 0.0.5. Then the example works fine in the ios simulator. Tested adding a contact in the simulator and this worked without problems and errors.
According to the git log version 0.0.5 is the version before the thumbnails update. This makes me think there could be a problem with the thumbnails and iOS at least with the iOS simulator.
First I would like to thank you for your great work and writing this package. I think it is very helpful to a lot of developers.
I upgraded yesterday to flutter beta 3 and the latest version of the contacts_service plugin. I tried the example on both ios (simulator) and android (first pixel). On android everything works fine. On ios (iPhone X simulator), I get a PlatformException error when adding a new contact (see error below). I have included the flutter doctor output bellow the error. On android adding a contact works fine. On both ios and android displaying the contacts works fine. Of course in the simulator the app has contacts access. If you need any more input, please let me know.
[VERBOSE-2:dart_error.cc(16)] Unhandled exception: PlatformException(, Failed to add contact, null)
0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:547:7)
1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:279:18)