apache / apache/cordova-plugin-inappbrowser
Problem with function close()
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hello
I have problem with inapp, I want close browser after when event fire. I try use close() but function not working. What Im doing wrong?
This is my code:
const browser = this.inAppBrowser.create(url, '_blank', options);
```
const browser = this.inAppBrowser.create(url, '_self', options);
browser.on("loadstart")
.subscribe(
(e) => {
let u = e.url
if(u.includes("search")) {
alert("Close");
browser.close();
}
},
err => {
console.log("InAppBrowser Loadstop Event Error: " + err);
});
```
Contributor guide
Research direction
No repository file or test is named. Start by checking the InAppBrowser API behavior for create(), the _self target, loadstart, and close(), then reproduce the URL-matching flow; done means determining whether the browser closes when the URL includes "search" and documenting the required usage or confirming a plugin defect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100