CartoDB / mobile-sdk

CARTO Mobile SDK core project
https://carto.com/docs/carto-engine/mobile-sdk/
BSD 3-Clause "New" or "Revised" License
185 stars 66 forks source link

[Android] background rendering #307

Open farfromrefug opened 5 years ago

farfromrefug commented 5 years ago

I am trying to do a nifty trick in my app to allow the user to see the map (for navigation) on the lockscreen on Android. However while on the lockscreen the captureRendering method is not calling its callback. I think it might be because the GLSurfaceView does not want to render while on the background. Can you confirm? Will keep on searching on the web

mtehver commented 5 years ago

I guess you are right, GLSurfaceView likely suppresses all rendering request when the view is hidden or the activity is paused. If you find any workaround, please share it.