Open Federnenz opened 7 months ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hello @Federnenz, I tried to reproduce the issue but I'm able to get logs from Firebase InAppMessaging. Could you provide a sample app that reproduces the issue? Thanks.
Hello, we figure out that, event having the Firebase package installed and within the package the in app message dependencies, we needed to add explicitly to our package descriptor the dependency, .product(name: "FirebaseInAppMessagingSwift-Beta", package: "firebase-ios-sdk")
.
This was frustrating, as we had campaign that were working previously, and all of a sudden, stoped working. This should be indicated explicitly in the documentation.
@Federnenz Sorry about the trouble. Would you clarify what you would like to see improved in the docs? Is the problem where it says Choose the In-App Messaging library. at bullet number 3 of https://firebase.google.com/docs/in-app-messaging/get-started?authuser=1&platform=ios#get_your_apps_instance_id?
Hey @Federnenz. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Hey @paulb777 , thank you for answering. Yes, the bullet number 3 should specify the needed library, would be great if this could be changed. Thank you.
Carlos.
@morganchen12 Would you take a look at this? 3 should be "Choose the FirebaseInAppMessaging-Beta" library. In general, it looks like the docs need a separate variable for specifying the library versus the name of the product.
The way we've setup the include SDK instructions on devsite are pretty inflexible to this kind of change. @markarndt if you have a moment, PTAL and let me know if you think it's feasible.
Description
We are trying to show a basic in app message triggered with the on_foreground event. However, when debugging the app, no logs regarding in app message appear [Firebase/InAppMessaging]. For the basic in app message test, got the instance id programmatically, as following this tutorial is not working: https://firebase.google.com/docs/in-app-messaging/get-started?authuser=1&platform=ios#get_your_apps_instance_id As well, verify the project has enabled the in app messaging api. However, in simulators, and only in simulators, we can see debugging the view hierarchy, that a view is attached to the window, but with height zero, like is visible in the attached image.
Reproducing the issue
Set a basic in app message campaign, with the configured app for iOS, and try to trigger the in app message with the on_foreground event.
Firebase SDK Version
10.21.0
Xcode Version
15.2
Installation Method
Swift Package Manager
Firebase Product(s)
All
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippet```json Replace this line with the contents of your Package.resolved. ```
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippet```yml Replace this line with the contents of your Podfile.lock! ```