Cordova backbutton Event Never Firing

前端 未结 3 1570
闹比i
闹比i 2021-01-24 15:08

I am overriding my device back button per the documentation that I attach event listener to backbutton with argument of false after the devicerea

3条回答
  •  悲哀的现实
    2021-01-24 15:32

    The issue was I was importing cordova.js in an iframe even though it was already in the parent window scope. I didn't know it would break it and thought I had to import cordova.js in the iframe. Removing the from the iframe fixed it.

提交回复
热议问题