Please provide the following:
- SDK Version: 41.0.0
- Platform: Android
I am working on an app that notifies people of leftover vaccinations in my country. It runs an expo background task which periodically makes a post request to a webpage which retrieves locations and if they have leftover vaccinations. The app is supposed to notify the user when vaccinations are left over. When I debug my app through Expo Go, notifications work fine. However, once my app is built, it doesn’t seem to work. I am very inexperienced with Expo and React Native, but I have followed the instructions on this webpage: Using FCM for Push Notifications - Expo Documentation, but it still does not seem to work, and the instructions are a little unclear to me.
I created my app on Firebase and downloaded the google-services.json, and linked it as such in my app.json. That build didn’t seem to send push notifications. In step 5 of the aforementioned webpage, it mentions to go into GCP and retrieve an API key with no restrictions. I went there and noticed no API keys listed, so I created a new one with no restrictions. I replaced the existing API key in my google-services.json under client.api_key.current_key, with the one I created in GCP, and rebuilt the app. Unforunately, it still does not seem to be working.
I am very inexperienced with Expo and React Native, but the notifications did work when I was testing the app in Expo Go, but not once built, so I think it must be the notifications API that is not working.
As a sidenote, due to how this app is designed, it doesn’t require a server/backend so I skipped that step on the FCM instructions page.
Any help would be greatly appreciated