DRSchlaubi / contact_picker

A Flutter plugin for picking a contact from the address book.
https://pub.dev/packages/fluttercontactpicker
BSD 3-Clause "New" or "Revised" License
18 stars 37 forks source link

Unable to select contact in iOS 15 #43

Open sivasuthans opened 3 years ago

sivasuthans commented 3 years ago

Hi,

fluttercontactpicker great package and it is working fine in lower version very well. But out its not working in iOS 15.

DRSchlaubi commented 3 years ago

Could you share some more information on that?

sivasuthans commented 3 years ago

I am using the latest fluttercontactpicker: ^4.5.1 Native contact list is opening successfully but when I select nothing happens just stuck we need to kill the app. This only happens in Apple's latest iOS 15 beta 4.

DRSchlaubi commented 3 years ago

I actually meant an error log

sivasuthans commented 3 years ago

Incident Identifier: 4664A14F-E907-4474-8D23-12715F42C43C CrashReporter Key: A58674DD-02F9-F8B6-866D-E172BB82EC1A Hardware Model: MacBookPro15,1 Process: MyOptus [35072] Path: /Users/USER/Library/Developer/CoreSimulator/Devices/1BBED08D-83A1-41D8-86E9-67399717CCA0/data/Containers/Bundle/Application/F438979A-A06D-4E2C-866C-1A788257BF04/ Identifier: au.com.optus.myoptus Version: 7.2 (5279) Code Type: X86-64 (Native) Role: Background Parent Process: launchd_sim [34119] Coalition: com.apple.CoreSimulator.SimDevice.1BBED08D-83A1-41D8-86E9-67399717CCA0 [5384] Responsible Process: SimulatorTrampoline [583] Date/Time: 2021-08-10 14:13:20.5539 +1000 Launch Time: 2021-08-10 14:12:10.8546 +1000 OS Version: macOS 12.0 (21A5294g) Release Type: User Report Version: 104 Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: FRONTBOARD 2343432205 <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: application:35072 exhausted real (wall clock) time allowance of 10.00 seconds ProcessVisibility: Background ProcessState: Running WatchdogEvent: scene-update WatchdogVisibility: Foreground WatchdogCPUStatistics: ( "Elapsed total CPU time (seconds): 25.940 (user 14.420, system 11.520), 16% CPU", "Elapsed application CPU time (seconds): 0.122, 0% CPU" ) reportType:CrashLog maxTerminationResistance:Interactive> Triggered by Thread: 0 Application Specific Information: CoreSimulator 775 - Device: iPhone 12 mini (****----****) - Runtime: iOS 15.0 (19A5307d) - DeviceType: iPhone 12 mini dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot Last Exception Backtrace: 0 CoreFoundation 0x7fff203fb4a4 0x7fff202e9000 + 1123492 1 libobjc.A.dylib 0x7fff2019ebe7 0x7fff2017f000 + 130023 2 CoreFoundation 0x7fff203fb392 0x7fff202e9000 + 1123218 3 Contacts 0x7fff292d51bf 0x7fff29209000 + 836031 4 Contacts 0x7fff29296bf4 0x7fff29209000 + 580596 5 Contacts 0x7fff29296aa6 0x7fff29209000 + 580262 6 Contacts 0x7fff292959eb 0x7fff29209000 + 575979 7 fluttercontactpicker 0x1128f9deb 0x1128f8000 + 7659 8 fluttercontactpicker 0x1128fcb8d 0x1128f8000 + 19341 9 ContactsUI 0x7fff2e474ab4 0x7fff2e449000 + 178868 10 ContactsUI 0x7fff2e595d5f 0x7fff2e449000 + 1363295 11 ContactsUI 0x7fff2e596559 0x7fff2e449000 + 1365337 12 libdispatch.dylib 0x7fff20110a82 0x7fff2010f000 + 6786 13 libdispatch.dylib 0x7fff20111c89 0x7fff2010f000 + 11401 14 libdispatch.dylib 0x7fff2011f0a8 0x7fff2010f000 + 65704 15 CoreFoundation 0x7fff20369125 0x7fff202e9000 + 524581 16 CoreFoundation 0x7fff20363982 0x7fff202e9000 + 502146 17 CoreFoundation 0x7fff203629cb 0x7fff202e9000 + 498123 18 GraphicsServices 0x7fff2cb74cd3 0x7fff2cb71000 + 15571 19 UIKitCore 0x7fff24fd7457 0x7fff2431e000 + 13341783 20 UIKitCore 0x7fff24fdbebf 0x7fff2431e000 + 13360831

DRSchlaubi commented 2 years ago

I am not really an iOS developer and don't really have any real possibility to test this myself so the error also doesn't really help me much Anyone else interested in fixing this?

johnspackman commented 2 years ago

Same thing happens for me - using it for the first time, and following the example; the picker pops up, and you can search etc, but there is no way to actually select a contact. Your only options are to view the contact, "Cancel" and "Groups"

masterfego commented 2 years ago

I am using this package but I don't have issue in iOS 15, Did you add the permissions in your Info.plist?

<key>NSContactsUsageDescription</key> 
<string>This app requires contacts access to function properly.</string> 
GoldenSoju commented 1 year ago

@johnspackman It is a bit unintuitive, but when you click on a contact and the details page opens, there you have to click on the email for example to select/add the user. So there is no extra "Add" button or something the like.