Sending message to Unity from webpage is cool. Can I specify my scheme for sending message?

Yes, you can do it from version 1.3.0. UniWebView is listening to "uniwebview" scheme of url by default, and sending it to Unity as an UniWebViewMessage. You can add new url scheme to listen, by using the AddUrlScheme method of UniWebView. The plugin will redirect the url link to Unity if the scheme is added. You can retrieve and parse the message after getting the rawMessage of the corresponding UniWebViewMessage. We also prepared a RemoveUrlScheme method, refer to the reference for more.

Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk