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

Error: exec proxy not found for :: Stepper :: startStepperUpdates #2

Open
BonBonSlick opened this issue Aug 2, 2020 · 0 comments
Open

Comments

@BonBonSlick
Copy link

I was realy mad because there not much docs about how to init cordova plugins.

We use nuxt (vue) + vuetify.

Cordova treated as plugin

     try {
                this.initStepsCounter()
            }
            catch (err) {
                console.log(`error`, err);
                alert(JSON.stringify(err));
            }
        },

        initStepsCounter () {
            Vue.stepper = window.stepper;
            const {Stepper} = window;
            console.log(`Stepper`, Stepper);
            console.log(`window.Stepper`, window.Stepper);
            console.log(`window.stepper`, window.stepper);
            console.log(`window`, window);
            console.log(`navigator.stepper`, navigator.stepper);
            console.log(`navigator`, navigator);
            console.log(`Vue.cordova`, Vue.cordova);
            console.log(`this`, this);
            console.log(`this.cordova`, this.cordova);
            console.log(`window.cordova`, window.cordova);
            console.log(`navigator.cordova`, navigator.cordova);
            console.log(`navigator.camera`, navigator.camera);
            var offset = 0, options = {
                pedometerIsCountingText:      'Pedometer is counting',
                pedometerStepsToGoFormatText: '%s steps to go'
            };

            window.stepper.startStepperUpdates(
                offset,
                result => {
                    var stepsToday = result.steps_today;
                    console.log(`stepsToday`, stepsToday);
                },
                err => {
                    console.error(err);
                },
                options
            );

        },

window.stepper 222 undefined
cordova.js:1021 adding proxy for Camera
Stepper undefined
window.Stepper undefined
window.stepper Stepper
window Window
navigator.stepper undefined
 navigator Navigator
 Vue ƒ Tn(t){this._init(t)}
Vue.cordova undefined
this ObjectinitCustomUrlScheme: ƒ ()initStatusBar: ƒ ()initStepsCounter: ƒ ()initWKWebView: ƒ ()initialize: ƒ ()onDeviceReady: ƒ ()__proto__: Object
this.cordova undefined
window.cordova Object
navigator.cordova undefined
navigator.camera Object
cordova.js:1001 Error: exec proxy not found for :: Stepper :: startStepperUpdates

How do we use your plugin?
How to access it???

Semple configs here this project were used as skeleton

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