currently the user has to either keep the application in the foreground or check regularly the status of the battle. the battle pauses on onStop of the activity life cycle.
The Solution:
Currently I am working on solution that continues the battle in the background using Background Service. Once the battle ends, the user will get a notification and the result of the battle will be sent back to the activity using Broadcast
currently the user has to either keep the application in the foreground or check regularly the status of the battle. the battle pauses on
onStop
of the activity life cycle.The Solution: Currently I am working on solution that continues the battle in the background using
Background Service
. Once the battle ends, the user will get a notification and the result of the battle will be sent back to the activity usingBroadcast