Closed iflyingboots closed 4 years ago
Looking into this now.
Just tested this on an iPhone 11 and it's working as expected.
From the logs, it looks like the test message was never fetched. Can you try relaunching the app after setting up the message for testing and getting the "Campaign ready for testing" toast on the Firebase console?
Yes I could see the "Campaign ready for testing" message. I sent the test message from the console to both devices, as shown below:
But only got the test message on one device, and got this log on my iPhone 11, which was the weird part:
There are 0 test messages and 0 regular messages and 0 Firebase Analytics events to watch after resetting the message cache
I've had this problem as well. I needed to remove and reinstall the app for the test message to appear.
@antonjn Thanks for your reply. I've tried the uninstall-and-install trick but it doesn't work for me.
Perhaps the issue is testing on multiple devices at a time... will try to duplicate.
You know what. This issue might be related to mine https://github.com/firebase/firebase-ios-sdk/issues/6803. If it's an iOS 13+ device the window might have been shown but gotten a zero frame, hence blocking all other messages to show until the app is restarted, as you can't interact to dismiss that window. Easy to check in the view debugger of an attached device. If you find a zero size window showing the FIRIAM message view that might be the problem. It's not that likely that this is your problem as it's related to the app's foreground/background state during the message window presentation eg. if you get a message during a drag to show home/app switcher gesture (drag up from bottom a little, hold the gesture and wait for message to "appear").
Yeah, I can't seem to reproduce this. Tried testing with multiple devices at once and it still worked. Was using this flow:
@iflyingboots (nice GitHub handle!) are you still running into this?
@christibbs Hi, I just performed another test, same build, same devices, and, it worked! No idea what happened, but it's indeed working now.
Thank for your help!
Great to hear.
Step 0: Are you in the right place?
firebase
tag.[REQUIRED] Step 1: Describe your environment
CocoaPods
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
Logs on the non-working device: