Skip to content

Better onboarding experience for AppBuilder #5

@tjvantoll

Description

@tjvantoll

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions