-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
api: inappmessagingFirebase In App MessagingFirebase In App Messaging
Description
- Xcode version: 13.1
- Firebase SDK version: 8.8.0 (Flutter plugin firebase_in_app_messaging: ^0.5.0+11)
- Installation method:
CocoaPods
- Firebase Component: InAppMessaging
The problem description:
InAppMessages are shown every new session even though the scheduling is set to 'No more than one message every day'.
The problem is reasoned by incorrect timestamp of the impression record. It's always 0 seconds.
Here is the line from log:
[Firebase/InAppMessaging][I-IAM270002] Insert the first impression record for message 3223183152453255168 with timestamp in seconds as 0.000000
I think the bug is located in this line
withStartTimestampInSeconds:self.lastDisplayTime]; |
This code:
[self.displayBookKeeper recordNewImpressionForMessage:messageID withStartTimestampInSeconds:self.lastDisplayTime];
probably should be fixed as:
[self.displayBookKeeper recordNewImpressionForMessage:messageID withStartTimestampInSeconds: [self.timeFetcher currentTimestampInSeconds ] ];
Metadata
Metadata
Assignees
Labels
api: inappmessagingFirebase In App MessagingFirebase In App Messaging