Forum Replies Created
-
AuthorPosts
-
MeMyselfParticipant
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.
MeMyselfParticipantHi 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.MeMyselfParticipantOk. 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
MeMyselfParticipantI tried to implement the callback but keep getting “SendMessage: object InAppBrowserBridge not found!”
MeMyselfParticipantI don’t know. I’m just linking different wikipedia articles “https://wikipedia.org/wiki/Example”
-
AuthorPosts