- This topic has 9 replies, 3 voices, and was last updated 3 years, 1 month ago by Piotr.
December 5, 2019 at 7:59 pm #1900
We are using In app web browser in our app and it was working fine for us. However, we had some reports that when a user tapped on a link, nothing was happening. We discovered the iOS 13 issue and updated to the latest version on the asset store. Now, the webpage pops up, but the callback to the app isn’t working on iOS. It still works on Android. It worked previously on older iOS versions though.
I took another look and everything still matches the suggested way to set it up in the docs, so I’m a bit lost on why it doesn’t work anymore.
Any help would be appreciated. Thank you.December 6, 2019 at 12:07 am #1903
Which callback do you have in mind? 🙂December 6, 2019 at 8:45 am #1906
I have properly subscribed to the onJSCallback.December 6, 2019 at 11:25 am #1911
As mentioned on Asset Store 2.0 changes the way you communicate from JS to Unity.
Check docs for a details, but essentially you need to do this:
webkit.messageHandlers.UnityInAppBrowser.postMessage(‘your message goes here’);December 6, 2019 at 4:04 pm #1912
Thank you, this change wasn’t showing up in the doc for me. My web guy and I were looking for it. Looks like it’s showing up now for me in the docs.
However, this new way doesn’t appear to be working either still on my iphone 7 test device which has iOS 13.2.3.
It did fix the issue on my iPhone 6 test device which runs iOS 11.4.December 6, 2019 at 7:58 pm #1913
Is sample scene working for you?December 6, 2019 at 8:07 pm #1914
ClearCache didn’t help it and I know I had uninstalled and reinstalled many times trying to get it to work, so I’m not sure why it finally picked up the new js file.
Appreciate the help.February 4, 2020 at 2:23 pm #1989sotirisParticipant
Hello, same problem here. Replaced the old way with iframe to the
webkit.messageHandlers.UnityInAppBrowser.postMessage(‘your message goes here’);
when it comes to iOS.
Android works perfect with UnityInAppBrowser.sendMessageFromJS(‘your message goes here’);
ios no luck. before updating it worked in both iphone and android..February 4, 2020 at 2:30 pm #1990
Is sample scene working for you?
- You must be logged in to reply to this topic.