gree / gree/unity-webview

[Re: ]On android, Not showing webview after back button to exit the app

Open
#448 1 comment 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

Hi, I uploaded my entire webview_call code below. I did not change other files.

On Android:
At the beginning of my app, Init_WebviewStart() is called and try to show the Webview by ShowWebView(string _url).

If I press the back button to exit my app, then run this app again, the Webview does not show anymore.
(But the webview is working if I forced app quit by pressing the left button at the bottom of the android phone.)

How can I resolve this?
By the way, this plugin is very good to use for mobile application. Thank you very much :)

//////////////////////////////////////////////////

https://gist.github.com/ksay2k/7d5c32d2400f3f5412bb0e1655027fc6

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 with the webview_call code linked in the issue, focusing on Init_WebviewStart(), ShowWebView(string _url), and the Android back-button path. Reproduce by exiting with Back, relaunching, and comparing that state with a forced quit; done means the WebView appears after relaunch in both cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.