Rob Close created CB-9811:
-----------------------------
Summary: Android bridge breaks after back button pressed
Key: CB-9811
URL: https://issues.apache.org/jira/browse/CB-9811
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 5.2.0, 5.1.1
Environment: I see this problem on Android 4.4.2/Galaxy Note II
and Android 5.1.1/Nexus 7
Reporter: Rob Close
Priority: Blocker
On Android, app is running, and you press home button. When you return to the
app everything continues on. If you press back button, when you return events
from native to JS are no longer fired.
I set two breakpoints in NativeToJsMessageQueue.java: one in reset and one in
setBridgeMode.
On app startup, setBridgeMode is called twice. -1 for the first call and 2 for
the second call.
After resuming the app after back button is pressed, reset is called, which
calls setBridgeMode(-1). setBridgeMode is not called again, and the bridge
stops working.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]