Flipboard / Flipboard/GoldenGate

Javascript callback not call Android callback

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
119
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Description:
When callback annotate as @JavascriptCallback is called from javascript for long time, then the android callback is not called.

Reason:
Android callback registered to BridgeInterface its stored to HashMap as >. When js work time is device under memory pressure then GC remove reference to callback_wrapper.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the BridgeInterface callback registry described in the issue and inspect how the HashMap stores the WeakReference callback wrapper. Reproduce a long-running JavaScript callback under memory pressure, then verify that the Android callback still runs after garbage collection; no test file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.