Objective-C Adding Contact to Favorites [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know a new contact can be created in an iOS addressbook.
Is there a way to also flag that contact and set it as a 'Favorite' programmatically?

I am not aware of any public API for this. And it makes sense, since this is a very invasive action. You should not be doing this - the user should be doing it.

Favorite contacts vary from one app to the next -- it's not something that the AddressBook framekwork manages. Take a look at the Phone app, and then look at FaceTime; you'll see that the contacts in the favorite lists are different (unless you've set the same favorites in both apps, of course). The same is true of the "recent" category.
To implement a Favorites list in your own app, keep track of the record identifiers for the contacts that the user chooses as favorites in your app. You can use ABPeoplePickerNavigationController to easily let users choose contacts to add to your favorites list.

Related

How to add a new list of information to Firebase’s firestore so all users can see it the next time they open the app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm building an iOS app with Swift that currently uses Firebase.
Here is what I want to do:
I have a list of items, whenever I add or subtract items from that list I want to send the updated list to all users, they will receive the updated list the next time they open the app.
How should I approach this? Is it possible with Firebase?
I had the same issue
I solved it by making the users download the list each time the user enters the app.
the issue here is that they must be connected to the internet
you can back it up and check: if internet is offline - use the old list in your local database

Using deeplinks to share User profile [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Currently, I'm using firebase to store the users in the database but I wanted to add a link to each specific id so the user is able to copy their profile link and send it to a friend if they have the app or not, I read a little bit about dynamic links from the firebase as well, but still lacking the idea of how to connect a users profile to a deep link.
Wrap user id (or profile id) somehow like: link.co/user_id
In dynamic link handler method you have to get user id (or profile id) from link and send it to ProfileViewController, then you simply open it as you always do from other place in application.
There's good article to read how exactly you will do this: https://www.yudiz.com/deep-linking-in-ios-using-firebase/

Building app -- need info on viewing other users playlists [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am currently building an app and would like the option of having users view other users playlists. Is this possible?
Of course this is possible. All this data would be in a database, and you would write stored procedures that would fall in a REST API that you would call from your app. You would need to do the filtering of said stored procedure to show users any kind of data you want (if you only want to show 'friends' playlists, or 'people around you'..etc). Remember, it's just all data. Nothing more. You format the data to look nice, but it's still just data.

Solution for voting without attachment to a model? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
My application is one page contract. I would like users to be able to sign the contract by clicking on a button. The contract is not a resource; it's plain HTML.
Every solution I have found so far relies on having a model that acts as votable. How can I implement a simple button that users may only click once, and display the number of users who have clicked it?
It's not possible to do this with static pages, at least not in a way that is clean and secure.
Think about it this way: every user is looking at a copy of the contract, which is being displayed to them on their browser (the client). If you want users to be able to cast votes that persist and be aware of votes cast by other users, then you need a server that keeps track of it centrally. That's why the solutions you have found so far rely on having a model, presumably backed with a table.

How to show recently views items like eBay in iOS app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am developing an eCommerce app for iOS. I want to display recently viewed products in one of my app's views. I want to do the same thing that eBay did in their iOS app. Whenever I viewed some product or searched for a product, it showed in a recently-viewed table.
How can I do this in my iOS app? Any help is appreciated. Thanks.
You need to keep track of whatever products the user views or searches. Keep a list of product ids or whatever is appropriate. Store this list in NSUserDefaults or a database depending on your needs so the data is available each time the app is run.
Use this list to display those products in your "recently viewed products" view.

Resources