Posts

Post not yet marked as solved
1 Replies
1.6k Views
Basically, I have a school app that students would use in class by activating themselves to the current active course, and the app should track students' actions like sending the app to the background to inactivate them. one more thing to add is that a student can lock his phone while activating himself to preserve the battery. when the phone is locked, the app is sent to the background state and then to the suspended state. The issue here is, After a while, if the user unlocks his phone, SOMETIMES user sees the home screen and when he opens the app from the app switcher, App gets relaunched (meaning the system terminates the app while the app was in the suspended state) and In that case, students can cheat the app without noticing it. I suspect Jetsam (Memory pressure) case is behind this since the app utilizes less than 50 MG of memory while in the background but can't be so sure. Is there any chance I could prevent this from happening? Are there any frameworks that could help fix that issue (being terminated while in a suspended state)?
Posted Last updated
.