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: