UniqueDeviceID
UniqueDeviceID copied to clipboard
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
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.
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.
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.