Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70439

Trigger cordova button programmatically

$
0
0

@Tombourret wrote:

I have some problem with a simple issue in my unit tests for an Ionic 4 project using Cordova. Somewhere in my tests, I have to subscribe to the Android back button :

this.backButtonSubscription = this.platform.backButton.subscribeWithPriority(9999, () => {});

And I’d like have a 100% code coverage on my project, so I must find a way to trigger the backButton event, but I don’t find any solution yet. Do you have any idea ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>