Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8830519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:06:40+00:00 2026-06-14T08:06:40+00:00

I have an iPhone app that needs to send data (it’s a vote) to

  • 0

I have an iPhone app that needs to send data (it’s a vote) to a mySQL server. But the user is only allowed to vote once a day and only once per user. I connect to the mySQL server by sending an HTTP request to a PHP script.

What I need is some sort of unique identifier of the iPhone the user is using. I think it’s OK if the user votes twice using two iPhones, so that isn’t a big concern: the purpose of the identifier is to identify each iPhone.

How can I get this? I would use [[UIDevice currentDevice] uniqueIdentifier] but I have read it is now deprecated. I have read about an open source library but it seems to have privacy leaks.

Can you guys think of any way to do this, either via XCode or via PHP? I would just keep the hasVoted BOOL in the app, but then the user can just uninstall it and make it reset…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:06:42+00:00Added an answer on June 14, 2026 at 8:06 am

    You can use CFUUIDCreate to make a random, unique ID. Then save the ID. Do not use NSUserDefaults since it is deleted if the user reinstalls the app. I would save it in the keychain. This is not deleted unless the iPhone is wiped, and the user cannot modify the keychain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built an iPhone app that needs to pull data from a server.
I have a form data from an iphone app that needs to send HTTP
I am developing an iphone app that needs to parse data received from server.
On an iPhone app (or mobile in general) that constantly needs to send requests
Im currently writing an iphone app that requires the downloading of data that needs
We have an iPhone app that needs to be resigned by another company for
I am creating an iPhone app that I feel needs to have a receipt
I have an iPhone app that I've built for the app store. Before I
I have an iPhone app that I am writing and it has 2 targets
I have an iPhone app that allows users to record videos and I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.