Closed mlevkovsky closed 7 years ago
@mlevkovsky Anything iOS 9.0 and above should work just fine. I'm on iOS 10.2 and it works great.
One thing I would check is making sure that they have the Contacts permissions enabled on their phone.
If you can get me more information, we can debug this together.
@joshuapinter it works great for me as well (awesome library btw) I am double checking that permissions are enabled with the users although I would be surprised that that's the issue (since they use it before) I wish I had more details, feels like I'm flying blind 😞
@mlevkovsky I know the feeling. 🙈 But seriously let me know what you find out and I'll get on it.
(And thanks for the compliment.) 👍
ya permissions are not the issue it seems. The user told me that it was working just fine and then stopped. Going to keep digging but not even sure what to ask them at this point
Ask what it's doing: i.e. does it just show a spinner with "Loading Contacts" or does it go blank or anything?
Also, depending on if your app's data is saved, maybe try and reinstall and see if that helps.
It's a fresh install, that's the weird part. I got a screenshot from the user and it's just blank a blank page, which is odd. So far this has been reported by 2 users. Very weird
@mlevkovsky Strange. Keep me posted on any updates.
@joshuapinter will do for sure
@joshuapinter ok so I updated my xcode to 10.2 and I let Xcode update my swift version to the latest one. Now the RNUnifiedContacts.swift won't build. I'm not sure if it's related or not to the issues some users are having.
@mlevkovsky Follow the new instructions on the README. They changed the way things build in XCode.
lol of course they did. thanks for the heads up!
@joshuapinter hmm ok so I re-added and re-installed the library but now, whenever I try to access the contacts I get this error
Unhandled JS Exception: undefined is not an object (evaluating 'UnifiedContacts.requestAccessToContacts')
and when I try to console.log the unified actions the object itself is undefined :/
@mlevkovsky And when you added it, did you add the individual files, not the directory?
yup, just followed step by step added the files individually and then grouped them
Can you go to your Build Settings and add $(SRCROOT)/../node_modules/react-native-unified-contacts/RNUnifiedContacts
to the Header Search Paths
?
that didn't work :/
@mlevkovsky Drats. Okay. I'm not sure about ideas but can you try a few different things and see if you can get it to work. I'll try on my end, too.
@joshuapinter sure thing. I'll give it a shot on my end to see what's going on. I'll compare it against your example project as well
@joshuapinter aha so I figured it out. This might be a new xcode bug ("feature") but when you add the files to your project it actually ads them outside of the main workspace. All I had to do was drag them in in the side menu.
Still have no idea why contacts don't show up for some people, but at least I got it to building again heh
@mlevkovsky 👏 Nicely done!
That's really bizarre. I'll play with it on my side and then look at updating the README.
@mlevkovsky Can you test something for me?
Can you:
Remove RNUnifiedContacts
from your project's side bar and the iOS folder.
Compile and confirm that it no longer works (i.e. Contacts is undefined, etc.).
Drag and drop the RNUnifiedContacts
folder from node_modules/react-native-unified-contacts
into the sidebar.
Check off Copy items if needed
.
Select Create groups
Ensure your project is selected for a target.
Click Finish
.
Recompile and see if it now works.
When you get a sec. Thanks!
Josh
@joshuapinter sure thing. I will try this over the weekend and get back to you
Awesome, thanks.
FYI, here's a GIF I made for the new README instructions if your test works out:
@joshuapinter ah ok so dragging the folder should work now?
@mlevkovsky It should work. Works for me but I want you to try it out and then I'll update the README instructions.
@mlevkovsky Did you get a chance to test out the drag-n-drop?
@joshuapinter seems to work but only after I updated to swift 3 with the latest xcode 👍 I have to commend you on your work on this library man!
@mlevkovsky Awesome, thanks for the update!
Some users of our app were saying how they can no longer load contacts. It used to work and now it just doesn't for them.
The only common thread that I was able to find between them is that they are on iOS 10.2 However, I am also using 10.2 and it loads fine.
Unfortunately I can't repro this. I was wondering if anybody else was experience this issue :/