Comments (2)
Hi @birdofpreyru, thanks for the issue.
I feel this is a bug/undocumented behavior. My hypothesis is that when you put the app in background, the Component tree is unmounted so the command is not sent, but stored in some kind of queues. As soon as the app comes back to foreground, the component is remounted, the queue flushed and the command executed.
If that the case, it should be easy to create a simple reproducer using this template, where you can add react-native-webview
as a dependency. This would help us investigate whether this is the case.
I don't have a clean and quick solution for this problem, it might require us some architectural discussion, but it is definitely something we want to understand and we want to get to the bottom of this!
from react-native.
Sure @cipolleschi , here you are: https://github.com/birdofpreyru/issue-45017
After doing yarn
, you probably want to open its android project in Android studio, locate react-native-webview/kotlin+java/com.reactnativecommunity.webview/RNCWebViewManagerImpl.kt
, and set a breakpoint at the line number 314 (it reads "stopLoading" -> webView.stopLoading()
).
Then run the app from Android studio in debug mode (and with dev server running):
- It opens, loads RN website.
- You hit the home screen button of emulator (or device)
- The app goes into background, an
(NOBRIDGE) LOG Entering background!
is printed in the dev server console, the breakpoint in native code is not hit. - Now you press the app icon in emulator to bring it back to the foreground — now the breakpoint for
stopLoading()
is hit.
from react-native.
Related Issues (20)
- Pod Install Giving an error HOT 2
- Accessibility broken for multi-line TextInput focus accessibility (since 0.71)
- RN The official scaffolding project introduced bundlejs and modified it again, but the hot update could not be triggered HOT 5
- Emojis are clipped when using certain combinations of `fontFamily`, `fontSize` and `lineHeight` HOT 2
- (INFO | Storing crashdata in: C:\Users\<>\AppData Problems running react-native android, caused by the emulator. (Windows) HOT 2
- Not able to run my react-native app HOT 3
- useWindowDimensions does not work for Expo 51 HOT 4
- Android Talkback - Checkbox accessibility state stuck with announcing "mixed" once the mixed state is introduced HOT 2
- codegen - 0.74: Int32 | null generates Nullable Integer on java side, but Ljava/lang/Double on c++ side. HOT 12
- `maxLength` of TextInput does not work when value is changed after state update HOT 2
- React native pod file use_modular_headers! throwing Redefinition of module 'ReactCommon' error HOT 4
- [BUG] :: MainActivity memory leak when running foreground service HOT 1
- TextInput callbacks inconsistent order of onSelectionChange and onChange/onChangeText HOT 4
- 0.74.2: RCTDeprecation/RCTDeprecation.h file not found HOT 13
- Finish implementing URL accessors like host, hostname, username, password HOT 5
- 0.72: Backport fix for privacy manifest generation path being nil HOT 2
- iOS: useWindowDimensions is not returning correct values after rotating when phone is locked. HOT 1
- [iOS] onChangeText of TextInput is fired with text longer than maxLength, then press undo app crashed HOT 7
- Need support for 16KB page size on Android HOT 3
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.