-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support for large in-app messages #831
Conversation
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
|
SDK binary size reports 📊SDK binary size of this PR
SDK binary size diff report between this PR and the main branch
|
@@ -7,13 +7,13 @@ protocol NetworkSettings { | |||
struct NetworkSettingsProduction: NetworkSettings { | |||
let queueAPI = "https://gist-queue-consumer-api.cloud.gist.build" | |||
let engineAPI = "https://engine.api.gist.build" | |||
let renderer = "https://renderer.gist.build/2.0" | |||
let renderer = "https://renderer.gist.build/3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not entirely sure about the impact here, but my assumption is that posting JSON might only work with this version of renderer and not the old one. And I believe it should still handle messages from both legacy editor and new editor without issues. However, just to be safe, can you please confirm if this change was intentional? It would also be helpful to mention this on linked ticket or in Slack so the squad is aligned and aware of the update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure i get it? 3.0
handles the new way of rendering and 2.0
still handles the old way. So the folks who had older SDK version would keep on using 2.0 until they use 3.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was exactly my question, whether 3.0
enforces any new requirements when composing in-app messages or if it's fully compatible with existing ones. From your response, it sounds like it is fully compatible. My only request here is to explicitly mention this update on ticket for reference, as I don't see it mentioned in ticket description or comments. I think calling this out clearly would be good for transparency.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #831 +/- ##
==========================================
- Coverage 64.58% 63.08% -1.50%
==========================================
Files 149 149
Lines 6172 6196 +24
==========================================
- Hits 3986 3909 -77
- Misses 2186 2287 +101 ☔ View full report in Codecov by Sentry. |
## [3.6.0](3.5.1...3.6.0) (2024-11-13) ### Features * support for large in-app messages ([#831](#831)) ([3731f68](3731f68))
closes: MBL-547: Bug: Large in-app messages not getting delivered
changes:
Before: You were overriding window.parent.postMessage, which altered how postMessage worked, potentially affecting other code on the page.
Now: You are listening for messages, allowing all normal JavaScript behavior to continue while capturing the data you need.