Skip to content

callfromjs issue on ios and also question debugging log on ios platform #1161

@chiangandy

Description

@chiangandy

Hi,

I am developing mobile app which integrate gree/webview. when I develop android platform web view work perfect and callfromJS can work. However, when I migrate project to ios  unity process cannot receive following callfromjs event. 

page url:
https://www.womo.com.tw/?unity_logout=1

javascript like this...

` const urlParams = new URLSearchParams(window.location.search);
if (urlParams.has('unity_logout')) {
unityLogout();
}

function unityLogout() {
  var message = {
      action: "log_out",
      timestamp: new Date().toISOString()
  };
  var jsonString = JSON.stringify(message);
  window.Unity.call(jsonString);
}`

I also try to use Safari and open web inspector to check about javascript log, but I cannot find webview app in develop tab. can you guide me how to check this?

Image

Any information will be appreciated.

Andy

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