Hello,
We have a few testing devices, but only on this one we have a problem:
Sony Xperia Z1
Android 4.4.4
When the app is started and then gracefully closed [native.requestExit()] and then started again, function:
CoronaEnvironment.getCoronaActivity()
returns null.
I’m not sure why this happens, this happens for us only on this device.
This causes a lot of headache, because none of the advertisements plugins can load when app is restarted.
Do you have any advice how to proceed with this?
Corona Enterprise version:
2015.2647
2015.2692
The plugin which throws this error is a first plugin loaded during application launch.
This is happening after 2-3 seconds from starting the app (we first load some animations which take some time and then load plugins).
The function is called inside constructor of the LuaLoader class of my plugin.
To summarize, here’s how we test it:
start the app
confirm plugins are loaded
exit the app ( using native.requestExit() )
start the app again
plugin gets null instead of activity