-
No.
-
No. What other options are possible besides re-executing? The behavior of the application during restarting indicates the repeated execution of the main.lua. As I wrote earlier - the main problem is the impossibility of reproducing the restart on demand.
-
Corona SDK build 2017.3184 (macOS)
Testing showed that the reboot occurs at times when the phone loses the network of the cellular operator or when it finds it and connects.
I will check the network services (Firebase, Appodeal, GPGS, Google IAP).
Hello everyone!!!
I continued to investigate this problem. The conclusion is disappointing - this is the problem of the Corona SDK.
I disabled ALL network services, ALL additional modules - the problem is present.
Next, I took the prototype of my game, there are 10-15 lines of code, not a single additional module. The problem is present.
I specify the essence of the problem:
Android (iOS not tested yet). The application is restarted. I play, I’m just in the menu - it does not matter. At some point, I again see a Corona splashscreen, and the application is restarted.
Reason for restart - the phone is losing its cellular network.
The application itself restarts at the moment when the indication of the status of the cellular network changes from “No service” to “Emergency calls only”. And this behavior of the phone (not the app) is absolutely normal, for example, in the subway.
Question to the Corona Stuff.
What are the solutions to this problem?
I fail to see any proof in that last post that Corona is the issue.
Correlation is not causation.
How many devices have you reproduced the issue on? Are you sure your device isn’t having some kind of issue?
Last, if you can come up with a recipe to reproduce this, you probably need to file a formal bug report with a zipped project and numbered steps to reproduce.
I will be glad to be wrong with my conclusions on this situation, however, in my opinion, for now everything points to the problem with the Corona SDK.
Right now, I’ve done these steps:
-
Launch Corona Simulator
-
Create new project, template - Game
-
Make APK and install it on my android device.
4. Verified that the cellular network is working
-
I started the application and waited a while.
-
I went into the settings of the Android, turned on the mode of the cellular network 2G (my operator in my region does not work at frequencies of 2G. Accordingly, the inclusion of this mode completely simulates the mode of signal loss).
-
Returned to the application.
-
After a while it restarted itself.
What then is the problem, if not in the Corona SDK?
And, have you tried these same steps, but running some several other games and apps not made with Corona? If so, do they all stay running and none of them restarts?
As far as your last question, the problem could be anything in a long list of issues. That definitely doesn’t narrow it down to Corona. You could be tripping over a OS bug, or an issue with that model of phone.
I didn’t see an answer to the question, “Have your reproduced this on any other devices?” Perhaps, a friends device?
Are you running a live build or an actual install?
Before you built to install, did you make sure to delete the live build file from the root folder?
-
This issue is repeated not only on the specified test device, but also on two other devices (phone and tablet Xiaomi, OS version 6.0, 7.0).
-
Just tried to reproduce this issue with Knife Hit game by Ketchapp. Everything is Ok, no issue there.
-
Actual install (copy app to phone, install; Google Play install).
Can you please install this tiny app and see if you can reproduce the issue:
https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2018/04/basic.apk
Source (but please run the one I built):
https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2018/04/basic.zip
For understanding:
The cellular network goes from the “Working” state to the “No service” state first. There is no problem at these two stages.
But it is worth the cellular network to go into the state of “Emergency call only” - it takes several seconds and the application is restarted.
Google play install? I suggest simply installing the app directly for testing.
Stepping away for a bit. Back later. Sorry, in the middle of some things over here.
This problem first appeared when installing the application via Google Play (alpha version of the application).
Later I tried direct install ofc.
I thought I responded to this earlier today… Lots of weekend distractions for me…
Anyway, I think @roaminggamer asked all the relevant questions, but I would like to point out your test is causing the app to suspend and resume. I don’t know if that’s impacting anything you are doing. Since you seem to have a test case, zip that up and share it with the community so you can get some additional device testing.
Now I remember, you also submitted this to support and that’s where I responded.
Rob, I already sent you the archive by e-mail.
And in addition - the error was repeated when creating an empty project (template Game), without a single line of code from me.
My test is causing the app to suspend and resume only because I can’t go to subway every time I need to test)))
And my test case completely simulates the behavior of the cellular network in the subway.
With the exception of moving the app to background and resume.
roaminggamer, same issue with your app.
For the first time I found this issue in the subway.
In further trips, I observed the behavior of the phone during the occurrence of this problem. And I found (and later confirmed) that this happens precisely when the state of the cellular network changes to “Emergency calls only”.
re: Same failure. Excellent. Thanks.
Rob already chimed in, but can you list the exact devices + models you’ve tested on and include their exact OS versions too.
- Xiaomi Phone ??? model Android ??? (include whole version number not just major number)
- Xiaomi Tablet ??? model Android ??? (include whole version number not just major number)
(Ex: 4.0 is a major number, but 4.42.3 would be an entire version number.)
Thanks
-
Please download the APK I supplied (since it reproduces the problem) or if a.voitov supplies one try it.
-
If you can, please see if you can reproduce this too.
PS - I don’t have a cellular android device or I too would contribute to this testing.