Thanks for the response.
There are no errors when i test with the Weinre debugger.
However when testing on device (iPhone 6s, ios10) if i click the button (I'll call it buttonConfirm from now on) nothing happens, but if i exist the app and go to the home screen, or app switcher, then the confirm dialog appears, and works as expected when i go back on the app.
-buttonConfirm has been clicked but nothing shows.
-Home button double clicked to bring up app switcher, dialog appears.
I added some console.logs within the function, these logs don't show in the console when I click the buttonConfirm to run the function, they only appear after I have left the app.
It's as if the event isn't firing until leaving the app.
To test further - I clicked the buttonConfirm, then clicked a different button to navigate to a page which has a console.log on page show event. The page navigated, but there was no log in the console. It was only when I left the app that the logs from the function showed and the log from the page show event showed, and the dialog appeared when i went back onto the app.
This is interesting because after clicking buttonConfirm I'm still able to navigate around the app and invoke services etc, but no console.logs on the app will show until I exist the app.
I'm really not sure what is causing this and I can't seem to find any solutions on google.