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 8045789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:38:36+00:00 2026-06-05T05:38:36+00:00

I am looking for a way to get the device’s UUID from an iPad

  • 0

I am looking for a way to get the device’s UUID from an iPad from both PhoneGap and native Objective-C environment. The problem is that PhoneGap gives me only a hashed version of the devices UUID. For example:

1) device.uuid = E0AB7C8C-EFEE-4EB1-9B8F-A543575390A0
2) [[UIDevice currentDevice] uniqueIdentifier] = 75579DE5-98C7-53B6-B2AD-7F348662CB5D

But as I need both values to be the same, I need one of following solutions
1) How to hash the [device uniqueIdentifier] exactly as PhoneGap does in Objective-C.
2) How to get the raw (not hashed) device’s UUID from PhoneGap (JavaScript).

Does someone know how to achieve this?
Thanks in advance!

  • 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-05T05:38:37+00:00Added an answer on June 5, 2026 at 5:38 am

    Since PhoneGap is open-source, you could have looked at how it generates the UUID yourself.

    Here is the method PhoneGap uses (copied from 1.7.0). I also reproduced the Apache License just in case I should be.

    /*
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
    
     http://www.apache.org/licenses/LICENSE-2.0
    
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
     */
    
    - (NSString*) uniqueAppInstanceIdentifier
    {
        // full path to the app folder
        NSString* bundlePath = [[[NSBundle mainBundle] bundlePath]
            stringByDeletingLastPathComponent];
    
        // return only the folder name (a GUID)
        return [bundlePath lastPathComponent];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a way to get from the GPS it's longitude and latitude
I'm playing with an embedded Linux device and looking for a way to get
Looking for a way to get path of file (and then process it in
Looking for a way to get the seconds until @post.created_at date time with timezone.
Am looking for a way to get image of the first page in pdf
I'm looking for a way to get the values of params being set, whether
I'm looking for a way to get notified in my unix system for new
I'm looking for a way to get and set those oddball chunks in a
I'm looking for a way to get the content of my div in my
I am looking for a way to get a twitter users userid via their

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.