When the app is in the background and it gets killed by Android (it may happen at any time), the SMS receiver stops, and no more votes are registered.
Keeping the app in focus helps, but when the phone becomes idle and locks the screen, the app may also be killed at any time, without mercy.
Using a foreground service and an extra thread would probably help, but I'm not sure how the service is supposed to contact the app back if it's been killed.
HELP
Keep in mind that most of the app is a Godot export, and the Android bits are Godot Android Plugins. Perhaps it won't be an issue, but it is a constraint.
When the app is in the background and it gets killed by Android (it may happen at any time), the SMS receiver stops, and no more votes are registered.
Keeping the app in focus helps, but when the phone becomes idle and locks the screen, the app may also be killed at any time, without mercy.
Using a foreground service and an extra thread would probably help, but I'm not sure how the service is supposed to contact the app back if it's been killed.
> HELP
Keep in mind that most of the app is a Godot export, and the Android bits are Godot Android Plugins. Perhaps it won't be an issue, but it is a constraint.
When the app is in the background and it gets killed by Android (it may happen at any time), the SMS receiver stops, and no more votes are registered.
Keeping the app in focus helps, but when the phone becomes idle and locks the screen, the app may also be killed at any time, without mercy.
Using a foreground service and an extra thread would probably help, but I'm not sure how the service is supposed to contact the app back if it's been killed.
Keep in mind that most of the app is a Godot export, and the Android bits are Godot Android Plugins. Perhaps it won't be an issue, but it is a constraint.
The source of the Android plugin : https://framagit.org/domi41/godot-android-plugin-sms