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

Better onboarding experience for AppBuilder #5

Open
tjvantoll opened this issue Jan 30, 2015 · 0 comments
Open

Better onboarding experience for AppBuilder #5

tjvantoll opened this issue Jan 30, 2015 · 0 comments

Comments

@tjvantoll
Copy link

This builds on #3, but personally I find the getting starting experience for using analytics in AppBuilder apps cumbersome. Specifically I find it weird that I have to include a script after I install the plugin. I know of no other Cordova plugin that works this way and it's confusing.

The only two variables the script seems to need are a product ID and an app version number. Now that AppBuilder supports plugin variables, it seems like the product ID could just become a Cordova plugin variable, and that the plugin could retrieve the version number from the app package (my suggestion in #3).

Ideally you would just install the plugin, and add this to your code:

document.addEventListener( "deviceready", function() {
    window.plugins.analytics.Start();
});

Thanks

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

1 participant