I am developing a push notifcation application using Expo on managed API’s, and I am currently testing on Android.
When the application is on the background, It receives notifications on the first 5 minutes only
and then does not receive any despite the server is sending.
I openned the Apps settings on andriod and found an Application like FaceBook messenger has the autostart turned
on by default, so I changed my Application autostart manually to be ON, then the Application receives
the notification all the time without a problem.
So the question here How to ask a permission to make the application autostart automatically like facebook messenger ?
so that I can always receive the notifications ?
as Per the Documentation example for registerForPushNotificationsAsync, on the Application startup I ask for Permissions.NOTIFICATIONS
then send the Expo Notification token to my server.
I am using Managed Expo Application on
expo “sdkVersion”: 32.0.0,