Closed dochonglo closed 2 years ago
This thread is a continuation of the conversions from https://github.com/OneSignal/react-native-onesignal/issues/979#issuecomment-1115605827.
@ismaelbarry From what was found from above it seems the NSE is not running or is possibly crashing. Need to know what was found after following the troubleshooting guide to get more details: https://documentation.onesignal.com/docs/service-extensions#troubleshooting-the-ios-notification-service-extension
Is this still a problem?
Is this still a problem?
It is not. It's been resolved! in https://github.com/OneSignal/react-native-onesignal/issues/979#issuecomment-1115605827
Description:
Hey everyone!! :)
I'm experiencing an issue where images stored in Firestore cloud storage are not being shown on push notifications. I correctly installed the
OneSignalNotificationServiceExtension
for my ejected Expo project. I'm not using theonesignal-expo-plugin
because it was not available about a year and a half ago when we ejected from Expo to integrate OneSignal.I can successfully send push notifications to test phones using Firebase Cloud Functions and from the OneSignal dashboard.
Currently, I'm running
"react-native-onesignal": "^4.3.8"
and the iOS deployment target for my Podfile, Xcode project, and OneSignalNotificationExtension are each iOS 13.Whether it's an image stored in Firebase or a URL that ends in
.jpg
or.png
like the following: https://cdn.pixabay.com/photo/2018/01/21/01/46/architecture-3095716_960_720.jpg, we're having no luck.I searched through previous issues, both open and closed, and none have helped to resolve the issue.
Here's how I'm sending the notifications in my Cloud Function. (I'm following the example from OneSignal's documentation: https://documentation.onesignal.com/docs/firebase)
These are the current versions of OneSignal in my package.json:
"onesignal-expo-plugin": "^1.0.2",
"react-native-onesignal": "^4.3.8",
Here's the Podfile where the extension is outside the main target (but at the same level as the main target):
Here's the
OneSignalNotificationServiceExtension
installed in Xcode:Steps to Reproduce Issue:
I can successfully receive text notifications that are being sent to my physical device using the Firebase Cloud Functions (when in both development and production mode). I can also use the OneSignal dashboard to send notifications. However, when I attempt to send a photo either through the dashboard (url or uploading one) or through Firebase Cloud Functions (using a URL), only the text notifications are sent.
I'm sure this could be a common issue for people using Firebase and OneSignal.
What could be the issue here and I'd appreciate any help and thanks in advance!