Comments (28)
I've also had this issue.
Investigated a lot, found a bug - ChromeTabsManagerActivity activity doesn't restore it's state after onDestroy which may happen even when visually it was not destroyed.
Steps to reproduce (tried on Samsung j320 and Samsung A5 (2016)):
- Open developer options
- Turn on "Do not keep activities" in "applications" part
- Open example app
- Open browser (here goes our "onDestroy")
- Try to close browser
The fix is in implementing "onSaveInstanceState" and checking for savedInstanceState in "onCreate" (also some related changes may be needed)
from react-native-inappbrowser.
from react-native-inappbrowser.
Happens to me as well - API 28, Nexus 5X but only on device - emulator seems to be working fine. I will try to investigate more.
from react-native-inappbrowser.
I am also facing this issue on Android 6.0.1
from react-native-inappbrowser.
https://drive.google.com/open?id=1EYdVV9C8dRicbHJANdOK3HowGgKCHoWI
from react-native-inappbrowser.
tried without singleTask mode, but on this device - the same behaviour.
On others - works as it should.
from react-native-inappbrowser.
Yeah... and I can't reproduce this issue, so try debugging the plugin and let me know what you find, in the meantime it would be closed π
from react-native-inappbrowser.
I'm going to check that at weekend, Any pull request is welcome in the meantime! π
from react-native-inappbrowser.
I need a demo to reproduce this issue, please let me know
from react-native-inappbrowser.
@jdnichollsc, I've just use
InAppBrowser.open('SOME_LINK')
And got unclosable browser.
And the BrowserResult type is dismiss instead of cancel (I checked it on other android and ios devices)
from react-native-inappbrowser.
I can't reproduce this issue from Android 5.1.1 with the example project of this plugin, please attach a reproducible demo
from react-native-inappbrowser.
What's that?
from react-native-inappbrowser.
It's the answer of response as in ur screenshot.
InAppBrowser.open(link).then((response) => console.log(response))
Response returns: {type: 'dismiss'}
May be, if it helps: it reproduces on Samsung j-320. I don't know how to explain better.
from react-native-inappbrowser.
@Daha62 try with the last version please and let me know π
from react-native-inappbrowser.
@jdnichollsc thank u for ur updates. But the problem is still is still exist (
When I try to close it - browser opens again.
from react-native-inappbrowser.
Are you using android:launchMode="singleTask"
?
from react-native-inappbrowser.
Can you attach a reproducible demo? I can't help you without that, sorry
from react-native-inappbrowser.
Are you using android:launchMode="singleTask"?
yep
from react-native-inappbrowser.
try without android:launchMode="singleTask"
, let me check your link at night π
from react-native-inappbrowser.
Thanks @ssuchanowski, because I can't reproduce this issue and I can't help without a demo or logs of the issue :)
from react-native-inappbrowser.
@Daha62 @Rizwanilahi @ssuchanowski @WildyDS what happen if you try opening the browser with the forceCloseOnRedirection
property enabled? Just to know
from react-native-inappbrowser.
@WildyDS honestly I don't know, but any pull request is welcome mate! π
from react-native-inappbrowser.
@WildyDS So you're talking about the activity lifecycle, right? I'd like to help, but don't know enough about native Android code!
from react-native-inappbrowser.
@WildyDS honestly I don't know, but any pull request is welcome mate! π
I can actually do it in my spare time but in won't be soon
from react-native-inappbrowser.
@WildyDS So you're talking about the activity lifecycle, right? I'd like to help, but don't know enough about native Android code!
Exactly
from react-native-inappbrowser.
Hey guys, just run into this as well. Any work around or patch suggested? Thanks
from react-native-inappbrowser.
@WildyDS thanks for your help, it was fixed in the last version 3.3.0, let me know π https://github.com/proyecto26/react-native-inappbrowser/releases/tag/v3.3.0
from react-native-inappbrowser.
And guys, let me know what you think v3.2.0...v3.3.0
from react-native-inappbrowser.
Related Issues (20)
- Can I openAuth without modal style? I can't pass app store with modal window style. HOT 1
- How to customize the dismiss button caption other than 'close' | 'cancel' | 'back'? HOT 1
- [TypeError: Cannot read property 'isAvailable' of null] HOT 6
- Support new React Native new architecture (TurboModules/Fabric) HOT 1
- Android build breaks on RN 0.71 HOT 5
- Is it possible use it with react-native-app-auth? HOT 1
- Build Failed with react native 0.72.3 HOT 3
- How to handle callback urls in the app from InAppBrowser. HOT 1
- README recommends dangerous usage of deeplink redirects containing access token HOT 1
- `openAuth` never resolves on Android. Chrome says "Navigation is unreachable: myapp://..." when redirectUri is invoked HOT 1
- I am not able to get the url and return to my app HOT 13
- how can we close the inappbrowser when have detect redirect to another page? HOT 3
- add support for React Native 0.73
- update to EventBus 3.3.1: Google play store warning
- Delete or block a session from a previous session HOT 4
- Android - The browser closes when the application goes to the background HOT 4
- isAvailable returns always false if AndroidApiLevel <= 30
- Namespace in AndroidManifest no longer supported HOT 7
- Open provided url in google chrome if it exists. regardless of if chrome is the default browser or not
- Crash: Attempt to invoke interface method 'void com.facebook.react.bridge.Promise.resolve(java.lang.Object)' on a null object reference HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-inappbrowser.