-
Notifications
You must be signed in to change notification settings - Fork 0
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
Provided locale object has invalid currency code. #19
Comments
It still happening even if I set locale manually to What reason stands behind sending locale to Synerise? We have polish mCommerce app but it could be used on devices with any locale. So if I need to force specific locale this is not a good solution IMO. |
Unfortunately it happens on production now. We have a lot of app crashes :/ |
Could you paste yor crashing code and stacktrace? |
func trackRemovedFromCart(product: CartModel.Product, quantity: Int) {
guard isTrackingEventsEnabled else { return }
let event = ProductRemovedFromCartEvent(
label: "Customer removed product from cart",
sku: product.sku,
finalPrice: .init(amount: NSDecimalNumber(decimal: product.actualPrice).floatValue),
quantity: quantity,
params: params([:], excludedParams: [.source])
)
event.setOffline(false)
event.setDiscountedPrice(.init(amount: NSDecimalNumber(decimal: product.actualPrice).floatValue))
Tracker.send(event)
} |
100% of cases from iOS 17.1.1 |
Thank you, we take it with high priority. |
There is an issue with SDK. Since it's compile without any errors I have an exception in runtime that crashes an app.
It shouldn't happen.
I'm using
ProductAddedToCartEvent
andevent.setDiscountedPrice(.init(amount: NSDecimalNumber(decimal: product.secondPriceDecimal ?? .zero).floatValue))
The question is how it is possible that locale currency code is invalid?
The text was updated successfully, but these errors were encountered: