Skip to content

fix: walkaround of GeckoView's JSON serialization bug by stringifying the JSON object - #5312

Merged
jk234ert merged 1 commit into
developfrom
fix/geckoViewJsonIssue
Dec 27, 2021
Merged

fix: walkaround of GeckoView's JSON serialization bug by stringifying the JSON object#5312
jk234ert merged 1 commit into
developfrom
fix/geckoViewJsonIssue

Conversation

@jk234ert

Copy link
Copy Markdown
Contributor

Due to GeckoView's bug

GeckoView fails to serialize a JSON object with a nested array while communicating between JS and native, this makes the native side CANNOT receive some messages from public-api

This PR introduces a walkaround of stringifying the JSON before sending it to the message channel.
Tested positive on Android

@jk234ert
jk234ert requested a review from guanbinrui December 27, 2021 05:04
@jk234ert jk234ert assigned Jack-Works and Tlaster and unassigned Jack-Works and Tlaster Dec 27, 2021
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions
github-actions Bot temporarily deployed to pull request December 27, 2021 05:09 Inactive

@Tlaster Tlaster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jk234ert
jk234ert merged commit b38dd17 into develop Dec 27, 2021
@jk234ert
jk234ert deleted the fix/geckoViewJsonIssue branch December 27, 2021 07:04
@Jack-Works

Copy link
Copy Markdown
Member

yanzhihong23 added a commit that referenced this pull request Dec 28, 2021
* develop: (96 commits)
  fix: contract address (#5336)
  fix: entry icon  (#5222)
  feat: web3 provider api support page size in response (#5330)
  refactor: move twitter encoder/decoder to the encryption package
  refactor: move stego to encryption package (#5247)
  fix: curry same address (#5327)
  fix: opensea contract image (#5326)
  fix: currySameAddress (#5325)
  docs(i18n): sync i18n files from Crowdin (#5324)
  fix: add fallback when import erc721 in popup asset list (#5295)
  fix: bugfix for swap page (#5278)
  fix: hidden rainbow when nft avatar isn't exist (#5320)
  chore: upgrade deps (#5321)
  feat: an united nft service (#4593)
  feat: all i18n support hmr (#5294) (#5303)
  refactor: update configuration url (#5317)
  chore: enable semantic (#5292)
  refactor: improve zero address (#5313)
  fix: walkaround of GeckoView's JSON serialization bug by stringifying the JSON object (#5312)
  refator: trun on switches (#5305)
  ...

# Conflicts:
#	packages/mask/src/plugins/FileService/base.ts
#	packages/plugin-infra/src/types.ts
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.

3 participants