'Navigate from opened In-app Web browser back to the previous ionic page on react app

I am building an ionic react app, I have a button in PageView-A that opens an in-app web browser to fill a web form hosted on a website. Once the users have finished and submitted the form, I want to return them to a certain page in the app.

This is how I am launching the InAppBrowser in PageView-A:

<IonItem
  routerDirection={undefined}
  onClick={() => Browser.open({
     url: 'http://www.myweb.com/myform.html'
  })}
>
  <IonLabel>Fill Survey</IonLabel>
</IonItem>

Is that possible with react and ionic? or maybe return to the same page and fire a specific method?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source