Open InAppBrowser is restarting my App [fix-Ionic-issue].

[SOLVED] Open or Close InAppBrowser was restarting my Ionic App issue.

Update your code by adding...
'_system', 'location=yes, hardwareback=yes, hidden=yes'

This will be the 'final code to update' after adding above ↑ thing.
(Plugin used for InAppBrowserLink to Plugin)

Update your code as follows ↓↓

...
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';

export class MyClass {
	constructor(private iab: InAppBrowser) {}
 	
    myfunction() {
    	// change required ↓↓
    	// the 2nd and 3rd parameter are important to fix issue
    	this.iab.create('URL-LINK-TO-OPEN', '_system', 'location=yes,hardwareback=yes,hidden=yes');
    }
}

Done! 🤩 It’s that simple to fix this issue.

See you later 👋👋


Feel free to comment down in the comment box… If I missed anything or anything is incorrect or anything does not works for you :)
Stay connected for more articles.