Git Product home page Git Product logo

uniquedeviceid's Introduction

UniqueDeviceID

PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.

Installation

Latest stable release: phonegap local plugin add cordova-plugin-uniquedeviceid
or cordova plugin add cordova-plugin-uniquedeviceid

Current state from git: phonegap local plugin add https://github.com/Paldom/UniqueDeviceID.git
or cordova plugin add https://github.com/Paldom/UniqueDeviceID.git

Installation - PhoneGap Build

Add following to config.xml: <gap:plugin name="cordova-plugin-uniquedeviceid" source="npm" />

For older versions, use the following: <gap:plugin name="hu.dpal.phonegap.plugins.uniquedeviceid" version="1.2.0" /> or <gap:plugin name="hu.dpal.phonegap.plugins.uniquedeviceid" source="plugins.cordova.io" />

Supported Platforms

  • Android
  • iOS
  • Windows Phone 8

Usage

// Get UUID
window.plugins.uniqueDeviceID.get(success, fail);

Success callback function:

function success(uuid)
{
    console.log(uuid);
};

uniquedeviceid's People

Contributors

dpa99c avatar paldom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uniquedeviceid's Issues

Is there a way to get different unique device IDs in two separate applications?

Let's say I have two applications on a device and both of them are using this plugin. As of now, when I call window.plugins.uniqueDeviceID.get(), both of them return the same ID. My issue is that I don't want to duplicate my existing user tables for the second app so both apps are using the same tables and this is a problem as users in the first app are already recognized by that ID. Is there a way for each application to get their own unique device IDs?

If no SIM is present?

I read that the uuid comes from the "sim id", my question is if i have a ipad or a tablet without sim?
Does the plugin work or crash?

Android 7.0

I install the plugin on my App a cordova based app.
after building i can't use it my app, it's crashing on launch android 7.0.
and after a second attempt to rebuilt my app.
the promp show this : Error: Invalid data, chunk must be a string or buffer, not object

Windows 10 support?

Is Windows 10 a supported platform by this plguin? I did a quick test and the app throw error "Missing Command Error”.

How is best to call the function

could you please write a few examples on how to call
window.plugins.uniqueDeviceID.get(success, fail);

to get the device unique id?
thanks

Unique ID on IOS?

Hi,

After reading that the uuid on iOS is not unique to a device using the apache cordova device plugin, I was wondering if your plugin was different from it?
How does it work with iOS? is it a unique ID that I can rely on?

Thank you.

Question

Will this plugin effect againts Apples guideline? I'm scared to use it as they could reject our app. Do you have any real world app in the appstore with this plugin?

Usage plugin on mac

Hi, can i insert and use plugin in my phonegap app?
I create a new app in phonegap with command line
-> phonegap create app6
in this folder (->cd app6) i have installed your plugin with command line
-> phonegap plugin add https://github.com/Paldom/UniqueDeviceID.git
(in all phonegap framework, not in local)

then i have edit index.html stored in www folder.
After script cordova.js , afeter script js/index.js and afer app.inizialize(); i wrote this (always into script tags):

function success(uuid){
alert(uuid);
};
window.plugins.uniqueDeviceID.get(success, fail);

i save and run with:
-> phonegap run ios

simulator start on mac, app start and device ready blink, but anything do about uuid.

Can i do for use your plugin ?
thank you very much

Not getting an UUID in iOS

I'm not getting UUID inside iOS. The success callback function does get called but the parameter uuid is empty.

I might add It works well on Android.

Is there something i am doing wrong?

UUID is changing after application update for Android and IOS

I'm getting many logs from our customers, where the UUID is changing for every customer who has updated the application to newer version.

This is happening mostly with Android 6.0+ and IOS 10.0+.

I'm currently using 1.3.2 version of this plugin.

Strange behavior -- ID has changed

Hello my friends.

Today, for the first time happened a strange behavior with UniqueDeviceID Native Plugin.

The plugin returned me a diferent ID in same device after reinstall the app. This has not happened so far with no device. It has been updated multiple times on many devices and this has not happened.

The device thar happened this: Moto Z2 Force.

Here too: https://forum.ionicframework.com/t/strange-behavior-with-uniquedeviceid/134357

Tthank for help!
Daniel.

Does not work on Android API23

On API 23 I have:

 <uses-permission android:name="android.permission.READ_PHONE_STATE" />

but still I get this error:

java.lang.SecurityException: getDeviceId: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE.

Question about App Store Review for cryptography

Hi all,

If I use this plugin , do I need to answer "yes" for the following question in beta test review from apple?

"Is your app designed to use cryptography or does it contain or incorporate cryptography?
(Select Yes even if your app is only utilizing the encryption available in iOS or OS X.)

Thanks a lot!

Regards,
Kenneth

Getting Undefined Instead of Device UDID in ios.

I am new in Phonegap ios Application Development, My application have Push notication Function for that i need Device UDUI, so I use your Plugin in my Application But I get Undefine in UDID Option.

Please Help Me.

arm64 not supported?

Hi,

I'm making an app with this plugin but when i compile xcode 6.3.1 told me this:

captura de pantalla 2015-05-22 a las 20 36 09

arm64 is not supported?

Thanks.

Reject by "iTunes Store"

hi @Paldom
before use your plugin in PGB and deploy to "iTunes Store"
everything is OK

but...
after use your plugin in PGB and deploy to "iTunes Store",it occur a wrong message
Improper Advertising Identifier [IDFA] Usage - Your app contains the Advertising Identifier [IDFA] API but you have not indicated its usage on the Prepare for Upload page in iTunes Connect.
so...how to solve

PS
deploy to the "Google Play" is work

npm repositor

Do you have a plan to include your project in the NPM repository?

How secure is UUID? Is it possible to fake it?

Is UUID reliable? I have to verify that device is allowed to use some services from my server. Can I trust that UUID sent from my app is real or is it any way to fake it? Is it possible that 2 o more devices have the same UUID?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.