google / cordova-plugin-browsertab

A Cordova plugin that provides an interface to in-app browser tabs that exist on some mobile platforms, such as SFSafariViewController on iOS and CustomTabs on Android.
Apache License 2.0
117 stars 147 forks source link

On Ios, When trying to open a url with chars in language other then English exception is thrown #30

Open yosigolan opened 6 years ago

yosigolan commented 6 years ago

On IOS, When trying to open a url with chars in language other then English exception is thrown. take this url for example: "https://www.seevoov.com/customize-your-trip/巴塞罗纳-观光-度假"

on android it works fine.

ashraf7amdy commented 2 years ago

use encodeURI() ex: url =encodeURI(url);
this.browserTab.openUrl(url);