Kogarasi / Unity-Webview

主に gree/unity-webview のリファクタリング。本家を元に改良してく!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to change the url once loaded in webview..!

ankush-batra opened this issue · comments

Any idea, My web view is opened on two different button clicks but it opens the same url which is loaded the first time in the web view. How can i manage that?

I have the same problem...

After my test
There is an error in the second call to LoadURL on iOS
You can modify WebView.mm to solve

  • (void)loadURL:(const char *)url
    {
    NSString *urlStr = [NSString stringWithUTF8String:url];
    NSURL *nsurl = [NSURL URLWithString:urlStr];
    NSURLRequest *request = [NSURLRequest requestWithURL:nsurl];
    [webView loadRequest:request];
    //[webView reload]; <----- Delete this line
    }