Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage plugin on mac #4

Open
valix85 opened this issue Dec 3, 2014 · 3 comments
Open

Usage plugin on mac #4

valix85 opened this issue Dec 3, 2014 · 3 comments

Comments

@valix85
Copy link

valix85 commented Dec 3, 2014

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
Copy link
Owner

Paldom commented Dec 4, 2014

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
Copy link
Author

valix85 commented Dec 4, 2014

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
#4 (comment).

@Paldom
Copy link
Owner

Paldom commented Dec 4, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants