Comments (6)
➜ airplaza git:(main) ✗ flutter doctor -v
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-US)
• Flutter version 3.19.5 on channel stable at /Users/valentino/Flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 300451adae (6 days ago), 2024-03-27 21:54:07 -0500
• Engine revision e76c956498
• Dart version 3.3.3
• DevTools version 2.31.1
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc1)
• Android SDK at /Users/valentino/Library/Android/sdk
• Platform android-34, build-tools 35.0.0-rc1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.87.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.86.0
[✓] Connected device (3 available)
• Valentino’s iPhone (mobile) • 00008130-0018715E26B8001C • ios • iOS 17.3.1 21D61
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.105
[✓] Network resources
• All expected network resources are available.
• No issues found!
➜ airplaza git:(main) ✗
from flutter_contacts.
Hi @Valent1
This is probably because that's how your contact was saved. Many contact apps don't automatically split first and last name when you add a contact. You can use an app like Quis (http://quis.co) to change that :)
If your contact shows as first name and last name properly separated on the default contact app, feel free to reopen this thread.
from flutter_contacts.
if it was that trivial, I wouldn't have posted this.
All my contacts are saved with First name and Last name, they are saved in Google Contacts and I sync them with my iPhone. I access them via Google Contacts or the native Apple Contacts/Phone apps, no problem.
However, as I said in my original post, contacts are imported in my flutter app with a null last name via flutter_contacts.
Would you mind trying to replicate this on your physical iOS device? Just sync your contacts and then print some out, the ones that you know are saved correctly with first and last name.
from flutter_contacts.
How do I reopen this?
from flutter_contacts.
I have the same setup as you and never had this problem. So I'm not sure what's going on. You can see from this line that name.first
is a straight copy of c.givenName
from the native iOS contact, and there's not much else we can do if for some reason that one contains first+last.
Could you try logging the whole contact name? And can you also try logging what CNContact looks like at this point?
from flutter_contacts.
Related Issues (20)
- The build of android falls from version 1.1.7
- openExternalEdit does not prefill some Contact information
- Updating alot of contacts withGroups=true in a for loop throws an error.
- Attempt to present <CNContactPickerViewController> which is already presenting <FlutterViewController> HOT 1
- Compilation error due to mismatch between compileDebugJavaWithJavac and compileDebugKotlin HOT 7
- Please make class FlutterContacts singletone to be able create mock and simplify writing tests HOT 1
- [openExternalEdit] is not opening in edit mode HOT 1
- when i am using external picker my contact automatically after selecting contact my contact is deleted from phone book HOT 1
- App Crash when I accept allow button on the permission request message HOT 1
- flutter_contacts plugin is preventing the host app from upgrading into AGP 8.2.2 HOT 1
- Saving multiple number with labels HOT 3
- Setting contact.photo = null does not delete the image HOT 1
- openExternalInsert causing SecurityException HOT 1
- Contact With Group not retrieved HOT 1
- Is it possible to test for permission before asking?
- everything is null except displayName HOT 3
- Coudn't get Contacts in new phone, however worked fine in old phone HOT 1
- openExternalInsert() causing android app crash HOT 1
- Latest flutter stable version is breaking with this plugin use. Urgently need fix! HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_contacts.