MeMyself

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: iOS issue #1349
    MeMyself
    Participant

    OK I found it.
    it seems there is a bug (don’t know where it come from). Sometimes the url string gets a linebreak at the end (I’m sure it doesn’t come from my url because I have the same test string variable sometimes working, sometimes not). So this line in AppBrowserViewController.mm startLoadingWebView was returning null
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:_URL]];

    So here’s what I did

    (void)startLoadingWebView {
        _webView.delegate = self;
        if (_HTML) {
            [_webView loadHTMLString:_HTML baseURL:nil];
        } else {
            NSString *webStringURL = _URL;
            NSArray *split = [webStringURL componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]];
            split = [split filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"length > 0"]];
            webStringURL = [split componentsJoinedByString:@""];
            NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:webStringURL]];
            [_webView loadRequest: request];
        }

    There must be a cleaner way, but it works.

    in reply to: iOS issue #1347
    MeMyself
    Participant

    Hi Piotr,
    Do you have any clue ?
    I have a Scene with 3 UI pages in a Canvas (menu, levelselect and game)
    It seems to occur when I change the UI to menu and then return to the game. The strange thing is there is no problem on Android.

    in reply to: iOS issue #1341
    MeMyself
    Participant

    Ok. I had it added into the scene but it was manually without using the prefab. Now with the prefab I have the callbacks.
    Here is the result I have :
    url : (null)
    Error : Error Domain=WebKitErrorDomain Code=101 “(null)”

    I check before calling InAppBrowser.OpenURL() that the url string sent is not null and valid . I’m sure the problem is not with the url because I can have the same url loaded without problem and then having trouble with it another time.

    Regards

    in reply to: iOS issue #1339
    MeMyself
    Participant

    I tried to implement the callback but keep getting “SendMessage: object InAppBrowserBridge not found!”

    in reply to: iOS issue #1320
    MeMyself
    Participant

    I don’t know. I’m just linking different wikipedia articles “https://wikipedia.org/wiki/Example”

Viewing 5 posts - 1 through 5 (of 5 total)