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

Uncaught TypeError: Cannot read property 'then' of undefined #267

Closed
medicopedia opened this issue Mar 9, 2020 · 5 comments · Fixed by #280
Closed

Uncaught TypeError: Cannot read property 'then' of undefined #267

medicopedia opened this issue Mar 9, 2020 · 5 comments · Fixed by #280

Comments

@medicopedia
Copy link

D/SystemWebChromeClient(19365): file:///android_asset/www/plugins/cordova-plugin-apprate/www/AppRate.js: Line 223 : Uncaught TypeError: Cannot read property 'then' of undefined

I/chromium(19365): [INFO:CONSOLE(223)] "Uncaught TypeError: Cannot read property 'then' of undefined", source: file:///android_asset/www/plugins/cordova-plugin-apprate/www/AppRate.js (223)

@georgiosd
Copy link

Same here, any ideas?

@georgiosd
Copy link

@medicopedia I fixed it by manually calling AppRate.init()

@Akeri
Copy link

Akeri commented May 27, 2020

Same problem.
Thanks to @georgiosd for the solution

@georgiosd
Copy link

@Akeri happy to contribute to good Google results 😆

@regevbr
Copy link
Contributor

regevbr commented Sep 4, 2020

It happend to me as well. This is caused by a race condition of the deviceready event handlers. I hack/solved it by delaying the app rate interaction by 500 ms from the deviceready ever, giving a chance for the init method to finish

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

Successfully merging a pull request may close this issue.

4 participants