Paldom / UniqueDeviceID

PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.
MIT License
170 stars 96 forks source link

Usage plugin on mac #4

Open valix85 opened 9 years ago

valix85 commented 9 years ago

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

Paldom commented 9 years ago

Hi @valix85, maybe you missed the "local" keyword from phonegap local plugin add https://github.com/Paldom/UniqueDeviceID.git Remove all platforms (iOS, Android etc.) and try this method for inserting plugin. Add and build platforms after plugins added. You can check plugin installation success by checking window.plugins.uniqueDeviceID object is not undefined.

valix85 commented 9 years ago

Can you tell me about what can i do with config.xml file? Can you post me a small zip files with demo app? Thank you Il 04/dic/2014 20:49 "Paldom" notifications@github.com ha scritto:

Hi @valix85 https://github.com/valix85, maybe you missed the "local" keyword from phonegap local plugin add https://github.com/Paldom/UniqueDeviceID.git Remove all platforms (iOS, Android etc.) and try this method for inserting plugin. Add and build platforms after plugins added. You can check plugin installation success by checking window.plugins.uniqueDeviceID object is not undefined.

— Reply to this email directly or view it on GitHub https://github.com/Paldom/UniqueDeviceID/issues/4#issuecomment-65691467.

Paldom commented 9 years ago

Config.xml is not related to this issue, you need to register plugin there if you use PhoneGap Build. Unfortunately, I don't have a demo app, sorry.