Flipboard / GoldenGate

An Android annotation processor for generating type safe javascript bindings (Bridges)
BSD 3-Clause "New" or "Revised" License
120 stars 19 forks source link

Javascript callback not call Android callback #9

Open MatejMainus opened 9 years ago

MatejMainus commented 9 years ago

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 <callback_id. WeakReference>. When js work time is device under memory pressure then GC remove reference to callback_wrapper.