Start a new topic

Detect if back button is clicked

Hello, 


I am using the Ionic 3 with wikitude plugin and I was wondering if its possible to detect when the user clicks the back button to leave the ARchitectWorld? I noticed there is in the "WikitudePlugin.d.ts" 

 

 onResume(): void;
  onBackButton(): void;
  onPause(): void;

 how can I use those with my code here

 

startArworld(){ //start the AR world
      var startupConfiguration: any = {"camera_position": "back"};
      WikitudePlugin.loadARchitectWorld(
          function(success) {
            console.log("ARchitect World loaded successfully.");
          },
          function(fail) {
            console.log("Failed to load ARchitect World!");
          },          
          "www/assets/06_ObjectTracking_1_BasicObjectTracking/index.html",  // (2) if you have a GeoLocation World, use this
          ["geo"],  // (2) if you have a GeoLocation World, use this
          <JSON>startupConfiguration
      );
      //setTimeout(()=>{ //stop audio after 2 seconds if not it will glitch
        //this.startRadarsound();
      //},4000)
      
    }

 

 

1 Comment

Hi,


Please have a look if any of these forum posts help:


https://support.wikitude.com/support/search?term=ionic+back+button


In case none of these help, please contact the maintainers of the Wikitude Ionic starter app for further support. We do not have any in-house Ionic competencies, which is why we cannot offer support in that regard.


Greetings

Nicola

Login or Signup to post a comment