function showPrompt()

in src/telemetry.js [49:66]


function showPrompt () {
    insight._permissionTimeout = module.exports.timeoutInSecs || 30;

    const msg = 'May Cordova anonymously report usage statistics to improve the tool over time?';

    return insight.askPermission(msg).then(optIn => {
        if (optIn) {
            console.log(EOL + 'Thanks for opting into telemetry to help us improve cordova.');
            module.exports.track('telemetry', 'on', 'via-cli-prompt-choice', 'successful');
        } else {
            console.log(EOL + 'You have been opted out of telemetry. To change this, run: cordova telemetry on.');
            // Always track telemetry opt-outs! (whether opted-in or opted-out)
            module.exports.track('telemetry', 'off', 'via-cli-prompt-choice', 'successful');
        }

        return optIn;
    });
}