Closed walidowais closed 1 year ago
Hey @walidowais,
What version of the Cordova SDK are you using? We fixed this in our most recent version. If you're not on the most recent version 2.31.0, please try updating and that should fix the crash.
Thanks!
Hey @walidowais,
What version of the Cordova SDK are you using? We fixed this in our most recent version. If you're not on the most recent version 2.31.0, please try updating and that should fix the crash.
Thanks!
Oh I see, we are on version 2.29.0, I see the fix, will try updating the sdk on our end, thank you!
In our usage of Braze Cordova SDK on iOS, we sometimes get an error when publishing content cards to users that causes the app to crash.
We published this content card: https://dashboard-05.braze.com/engagement/campaigns/636c0dd211182453fd061ce2/6102e56c88de322c339d0881?locale=en&campaignName=Nov%20%2722%20Referrals%20Content%20Card%20Testing&page=-2
And noticed a spike in our app crash in our firebase dashboard:
With the full the stacktrace of the crashes pointing to this
[AppboyPlugin getJsonFromExtras]
method:We cross referenced the user ids in our analytics dashboards of users who had been sent this specific content card today and the user ids who saw the crashing issue and confirmed everyone seeing this exception was a subset of users that were sent this content card.
After stopping the content card campaign in Braze and selecting the "Remove card after the next sync (e.g. session start)", we were able to see the crashes stopped happening around 2022-11-10 9:11 AM UTC.
There might still be an issue in the braze apis that is causing content cards to send with the extras field as nil instead of an empty object, but checking if this value is nil here and returning an empty json object should stop the app from crashing in this scenario for now.