gree / gree/unity-webview

iOS Custom Callback not getting called sometimes

Open
#681 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

Hello, @KojiNakamaru -san. Thank you for your hard work.

My team implemented the custom Unity.call hooking for callbacks on the HTML side and on the Unity side which you prescribed here: https://github.com/gree/unity-webview/issues/563

My team also implemented the custom cb callback/delegate designation on webViewObject.Init()

It works perfectly on Android; the callback gets called and our logs are printed on LogCat.
On iOS, the callback also works but... not all the time.

We've checked the HTML codes, if in case there were any discrepancies. Also checked our Unity codes, but we see nothing wrong.

Can I confirm with you: Is there something we can do for the iOS counterpart to work 100%?
On Android, there's no problem.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the custom Unity.call hooking described in issue #563 and the custom cb callback/delegate passed to webViewObject.Init(). Compare the iOS callback path with the working Android behavior and reproduce the intermittent failure. Done means the custom callback is reliably invoked on iOS, with evidence from logs or a regression test if the project provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, unity
Domain
game-dev, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.