Hello,
But in android this is not working while the app is in background and on killed mode.
This should be due to Android's memory management mechanism ending your program in the background.
For the keepalive mechanism of push notifications, you can use the foreground service to increase the priority of the program in the background to prevent it from being cleaned up.
Please refer to this documentation: Foreground Services.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our [documentation][1] to enable e-mail notifications if you want to receive the related email notification for this thread.