Skip to content

BugFix: When JavaScript calls a registered Android method with JSON Obje...#4

Merged
fangj merged 2 commits intofangj:masterfrom
zhoulujue:master
Jan 3, 2017
Merged

BugFix: When JavaScript calls a registered Android method with JSON Obje...#4
fangj merged 2 commits intofangj:masterfrom
zhoulujue:master

Conversation

@zhoulujue
Copy link

The Android "handle" method will get an "undefined" String when JavaScript calls a registered Android method with JSON Object.
This fix simply passes JSON.stringify(message.data) to the Android world instead of passing message.data directly.

…bject, the Android "handle" method will get an "undefined" String.
…N String to JavaScript because _dispatchMessageFromJava function fails to parse the JSON String.
@fangj fangj merged commit 753ab59 into fangj:master Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants