Skip to content

Invoke unity function from Javascript or listen/trigger from redirect http response #220

Closed
@paatz04

Description

@paatz04

Hey there! Awesome work.

I was wondering if there is a way to listen to javascript function and invoke a unity function.
I couldn't find a documentation. Any hints ?

I would like to build a user login form and a short quizz and use that in my webview. I need to somehow listen to the submit event and close the webform. Or can i register to redirects ? For example close the webview when a certain response is returned.

Do I have to work with the init function I suppose ? I assume I can use cb - > call from JS. Do you have a JS sample that would trigger cb?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions