Skip to content
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

[iOS only] showShareSheet causes crash due to uncaught "NSUnknownKeyException" #665

Closed
EvelinJK opened this issue Aug 14, 2020 · 1 comment

Comments

@EvelinJK
Copy link

EvelinJK commented Aug 14, 2020

cordova: 10.0.0
cordova-ios: 5.1.1
branch-cordova-sdk: 4.1.3
XCode: 11.6

Executing branchUniversalObj.showShareSheet(analytics, properties, message) causes an exception in iOS that leads to a crash of the app.
The same code is working fine on Android.

Below are the logs we get in XCode. The error is caused by the BranchSDK.m file

We have no Swift devs here so we're not able to make much of that error.
Does anyone experience that too or has a clue what went wrong here?

image

image

@EvelinJK
Copy link
Author

EvelinJK commented Aug 14, 2020

Ok, my fault.
It was a typo 🤦‍♀️ in one key of our analytics object passed to the generateShortUrl function.
Seemingly Android doesn't care at all if the key is written correctly or not, but in iOS it causes a crash.
Interesting...

Anyway.
Sorry for the useless ticket. Will close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant