UniqueDeviceID icon indicating copy to clipboard operation
UniqueDeviceID copied to clipboard

Usage plugin on mac

Open valix85 opened this issue 10 years ago • 3 comments

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

valix85 avatar Dec 03 '14 10:12 valix85

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.

Paldom avatar Dec 04 '14 19:12 Paldom

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" [email protected] 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.

valix85 avatar Dec 04 '14 19:12 valix85

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.

Paldom avatar Dec 04 '14 20:12 Paldom