Rhino vs V8 hangs on Splash Screen issue

You must Login before you can answer or comment on any questions.

Wondering if anyone face same problem. Building a mobile app using Mobile SDK 1.8.1 with Android Runtime V8 but app hangs on Splash Screen if i exit my app, launch a different app and launch my app again. I need to force close and launch again.

It never happen on emulator, only on actually android device. Couldn't figure out what went wrong, checked my code and logcat everything seems ok.. It just freezes.. I switched to Rhino and it never hang, but using Rhino the app size when install to SD is 3.8mb vs V8 only 1.5mb.

— asked 1 year ago by Effendy Abdullah
2 Comments
  • Hello, which version of Android do you have in the device? Which device? It does freezes randomly? Does it freeze when accesing any resource like networks, gps or something similar?

    Best,

    Mauro

    — commented 1 year ago by Mauro Parra

  • Thanks Mauro, your comment made me check my code and log again and i found the root to the problem.

    — commented 1 year ago by Effendy Abdullah

1 Answer

Ok i found the problem. I have an Titanium.Geolocation.addEventListener in my app.js.

Opening another app that uses location service will cause my app to hang on splash screen.

Adding Titanium.Geolocation.removeEventListener on destroy, solves it

Your Answer

Think you can help? Login to answer this question!