Hello i want to share lists in my app between different devices. I want that person a can invite persob b to his list. Now person a and person b can read and modify the list.
The list is only visible for the invited pesons (person a and b). But every person who has donwloaded the app can create his own list and
invite persons.
But how can i implement the invitation function that person a can invite person b?
Do you have an idea how to implement the invitation and share functionallity or does anybody have a good tutorial?
Any suggestions are very welcome.
This can be done. With Parse. Read through the documentation on Parse's website. Once you tinker with a few things and see how it all works you'll come up with a clever solution. Use google as well if you're ever stuck on anything. It's all trial and error.
Parse iOS Guide
https://parse.com/docs/ios_guide#top/iOS
Related
Is there a way to find Favorite contacts from the iOS Address Book API? I'm referring to the contacts a user places in his Favorites tab in the Contacts app.
Favorites are stored inside Phone.app, not inside the Address Book database itself. You can't access other app's sandbox on a non-jailbroken iPhone, so unfortunately the answer is no.
Also, it would be pretty bad for privacy if any app could see your favorite contacts. It's already bad that it can access entire address book without asking you.
Filip is correct, you cannot access the list of favorite contacts on iOS via a public, app-store legal API.
To come close you could try to guess a user's favorite or most important contacts from their address book. Let's assume that people know most about the people they are closest to and that this is also reflected by their phone's address book:
For example, the address book contact for a close friend contains more
information (address, birthday, maybe a nickname) than a contact for a
business associate or a colleague at work.
We could then use this information to compute an importance score for each address book contact. By taking the n most important contacts we could approximate a user's favorite contacts.
I've written about this idea some more on my blog: http://dbader.org/blog/guessing-favorite-contacts-ios You can also find a sample implementation and a demo application there.
I have searched through the API and could not find any appropriate methods. Maybe Apple believes that this is a Phone-app data field or maybe it is about security. I'd love to use it, too.
In my app, I need to check address book and if ;
a person from address book is installed my app, user will be able to send a friend request,
a person from address book is not installed my app, user will be able to send an sms to relevant person to install the app.
This is actually same as Snapchat. So, what is the proper way to implement it ?
For instance, should I get phone number of the installer and record it to Users table in database ? Then when another user install the app, check all address book against Users table in DB and mark them application installed or not !
Maybe, there is an easy way to do it. So, please help me and provide some sample code for it.
Looks like you can use
CloudKit for the first question part:
discoverAllContactUserInfosWithCompletionHandler
https://developer.apple.com/library/ios/documentation/CloudKit/Reference/CKContainer_class/#//apple_ref/occ/instm/CKContainer/discoverAllContactUserInfosWithCompletionHandler:
You can get users that are also use your app.
For the second part, you can just use Address Book api I think to get all persons in the AB without your app.
https://developer.apple.com/library/ios/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/Introduction.html
Address Book is deprecated (or will be), so take a look at this WWDC 2015 video Contacts framework: https://developer.apple.com/videos/play/wwdc2015-223/
I am building an iOS chat application using the XMPPframework. I have been able to register, send invites, accept invitation and chat. However when I try to populate my buddy list using the Roster, I get the names of all the buddies whom I have already added as well as whom I have sent Friend request. I am not able to differentiate between them. I have tried to dig into the XMPPRosterMemoryStorage class but all the methods are returning the same list (sorted/unsorted).
How to show an invited buddy as pending if he has not accepted the invitation yet.
Please help.
Thanks.
Answering my question. Looks like i didn't dig deep enough in XMPPRosterMemoryStorage class. All the jid's along with other details like subscription & ask attributes are received in Roster. However the methods sorted/unsorted were returning only the jid's of all the users. I went back and customized the XMPPRosterMemoryStorage class to return only jid's which have been accepted by both users.
I am pretty new with iOS 5 and I am thinking in writing an app.
I would have a list of people inside the app who has it. Then I would invite them to an event.
I don't need any code right now I just wanted to know the concept behind this.
First, how an app can recognise who has my it installed, so it can show a list of people.
Second, after creating an event with a group of people how can I send an invitation to them.
Thanks
From a very general standpoint, what you need is a back-end server to interact with your app and store user/event info. You can either build your own or try to use a service like Parse.
Is there a way to find Favorite contacts from the iOS Address Book API? I'm referring to the contacts a user places in his Favorites tab in the Contacts app.
Favorites are stored inside Phone.app, not inside the Address Book database itself. You can't access other app's sandbox on a non-jailbroken iPhone, so unfortunately the answer is no.
Also, it would be pretty bad for privacy if any app could see your favorite contacts. It's already bad that it can access entire address book without asking you.
Filip is correct, you cannot access the list of favorite contacts on iOS via a public, app-store legal API.
To come close you could try to guess a user's favorite or most important contacts from their address book. Let's assume that people know most about the people they are closest to and that this is also reflected by their phone's address book:
For example, the address book contact for a close friend contains more
information (address, birthday, maybe a nickname) than a contact for a
business associate or a colleague at work.
We could then use this information to compute an importance score for each address book contact. By taking the n most important contacts we could approximate a user's favorite contacts.
I've written about this idea some more on my blog: http://dbader.org/blog/guessing-favorite-contacts-ios You can also find a sample implementation and a demo application there.
I have searched through the API and could not find any appropriate methods. Maybe Apple believes that this is a Phone-app data field or maybe it is about security. I'd love to use it, too.