tjvantoll / nativescript-social-share

♻️ A NativeScript plugin for using the iOS/Android social sharing widgets
MIT License
94 stars 48 forks source link

Crash on iOS with UTF-8 and special characters in URL #56

Open markosole opened 4 years ago

markosole commented 4 years ago

Hi guys, I would like to report app crash during share of URL which contain one of listed characters [č ć š đ ž]. I am sharing generated URL to web URL and app crashes only if contain one of those chars. (incl caps).

I've checked plugin files for encoding type and everything is UTF-8. Something else is problem here. I would love to avoid converting those chars to [c c s d z]. I've tried with older and latest versions, both have same problem. iOS is 13.0.4. Android works just fine.

UPDATE: shareURL takes 2 parameters, 1. URL and 2nd is Title. Title can hold any UTF special č š ć ž.. etc. But url can not. Is there a function to decode them to something like %u2603 because this would work?

Any ideas what could be a problem?