I’m developing a React Native app with push notifications.The Notification triggers from WebSocket. Currently, my AndroidManifest.xml includes:
My app uses a foreground service for push notifications, and it still receives messages even after the app is killed.
Recently, Google Play flagged my app with the following message:
Permissions for Foreground Services: Play Console declaration and/or app description in Google Play Store does not sufficiently demonstrate the use of permission.
I want to make my app compliant with Play Store rules.
My questions:
Do I need to remove the
FOREGROUND_SERVICE_DATA_SYNCpermission if I’m only handling push notifications?Is there a recommended way to receive push notifications after the app is killed without using a foreground service?
How do other React Native developers implement FCM / push notifications that comply with Google Play foreground service policies?
Any guidance or sample implementation would be appreciated.