Post

Replies

Boosts

Views

Activity

Reply to iOS 15.4 got "TypeError" when setting WKWebView address to a custom url scheme
We solved the problem. Use encodeURIComponent to process the data string. It looks like this. try{ window.location.href = 'bsfit://'+encodeURIComponent(window.some_custom_data); }catch(err){ alert(err); } For now, this method is compatible with iOS 15.4 and earlier versions (iOS >= 9).
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22