Closed LorandP closed 5 years ago
I'm trying to track down the same issue. For us we are only missing the events on iOS, Android gets them just fine. Also, looking back through the data in the Firebase Console it looks like we've never gotten these automatic events for notifications on iOS and we've been using this lib since v3. Can anyone confirm that they do get the events on iOS?
@smathson I can confirm that we receive these events in iOS. Our only problem is that we do not receive them all the time.
@LorandP Thank you, upgrading the Firebase SDK to 5.11.0 and re-enabling method swizzling solved our issue but events still don't seem completely reliable. As far as I can tell from tailing the logs, the Firebase SDK is getting all of the events as it should, they just aren't making their way to the console properly. I don't think this is an issue with this project, but rather an underlying issue with the Firebase SDK itself.
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.
Issue
Automatically collected events like Opens and Conversions which show how many times a push notification was opened do not register on firebase console all the time. You can see the events here https://www.photobox.co.uk/my/photo/full?photo_id=501468107131 https://support.google.com/firebase/answer/6317485?hl=en
The onNotificationOpened method is triggered but these two events are not collected all the time. ` import firebase from 'react-native-firebase' class FCM { constructor() { this.notificationListener = null; this.notificationOpenedListener = null; this.notificationChannel = null; }
async addListeners() { try { if (isIOS) { return NotificationsIOS.configure(); }
}
removeListeners() { try { this.notificationListener(); this.messageListener(); this.notificationOpenedListener(); this.notificationChannel = null; } catch (err) { CrashlyticsService.logException('FCM.removeListeners', {}, err); } }`
Project Files
iOS
ios/Podfile
:` platform :ios, '9.0'
target 'app' do Uncomment the next line if you're using Swift or would like to use dynamic frameworks use_frameworks!
pod 'Fabric', '1.8.0' pod 'Crashlytics', '3.11.0'
pod Firebase/Core, ~> 5.3.0 pod Firebase/Messaging, ~> 5.3.0 pod Firebase/Auth, ~> 5.3.0 pod Firebase/Firestore, ~> 5.3.0
pod NewRelicAgent, 5.14.2
end `
AppDelegate.m
:Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
iOS12 and Android API 28, 26
N/A
N/A
N/A
xCode 10.0, Android Studio 3.1.4
React Native
version:0.53.0
React Native Firebase
library version:4.3.8
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter