Apache Cordova: iOS click event not working – Quick „how to“

When you are using Apache Cordova to create apps, you will most likely use click  events to navigate from one view to another or to do other stuff.

This all works fine on Android devices, but iOS is not doing anything – and you won’t get an error in the debug console, either.

The problem is that iOS is not sending a click  event, but touchstart .

So your event listener should look somewhat like the following.

This will let you register your event listener for both the click event  and the touchstart event .

Veröffentlicht von

Christian Hänsel

Web-Entwickler, SEO-Experte. Ich liebe technisches SEO, die Entwicklung von neuen Ideen und alles rund um das Internet... ja, ich habe mein Hobby zum Beruf gemacht und gehe auch Montags gerne zur Arbeit.

Kommentar verfassen