-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix iOS dropping envelopes with UTF16 characters #150
Conversation
It may be time consuming but ideally we should have an integration tests testing the integration of the Capacitor + Native SDKs. |
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.
Did the sample event break before this change?
@@ -89,6 +89,16 @@ public class SentryCapacitor: CAPPlugin { | |||
call.resolve() | |||
} | |||
|
|||
@objc func getStringBytesLength(_ call: CAPPluginCall) { |
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.
Is this called from JS for both iOS and Android?
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.
Yes, but only Android implemented it
public void getStringBytesLength(PluginCall call) { |
in this case on iOS it was falling back to the value set in JS, which worked for most cases but not all of them.
No because the same was only using UTF8 characters. |
Instructions and example for changelogPlease add an entry to ## Unreleased
### Fixes/Features
- Fix iOS dropping envelopes with UTF16 characters ([#150](https://github.com/getsentry/sentry-capacitor/pull/150)) If none of the above apply, you can opt out of this check by adding |
Not sure how but, getStringBytesLength was missing from iOS so I just implemented it
Fixes #124 and #100
Tested event: https://sentry.io/organizations/sentry-sdks/discover/sentry-capacitor:b7e9eb1c22f34d1b84f0b085db3a733a/?field=title&field=event.type&field=project&field=user.display&field=timestamp&name=All+Events&project=5522756&query=&sort=-timestamp&statsPeriod=1h&yAxis=count%28%29