Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

webview load event not triggered anymore with 3.1.0GA - bug?

$
0
0

Since I've upgraded from 3.0.2GA to 3.1.0GA users can't login via a webview anymore, because the load event isn't triggered anymore.

Users login via a simple webform in a webview. After they login they're redirect to the same page. With evalJS I pass some data to the app:

webview.addEventListener('load',function(e) {
 
    Ti.API.info('webview load triggered (url: '+url+')');
    var res = webview.evalJS('CheckoutResult()');
    var json = JSON.parse(res);
 
    if(json.logged_in) {
        self.close();
    }
});
3.0.2GA CONSOLE output (expected behaviour)
[DEBUG] :  New scheme: <NSMutableURLRequest http://www.site.nl/login>
[INFO] :   webview load  triggered (url: http://www.site.nl/login)
[DEBUG] :  New scheme: <NSMutableURLRequest http://www.site.nl/logged_in>
[INFO] :   webview load test triggered (url: http://www.site.nl/logged_in)
3.1.0 GA console output:
[DEBUG] :  New scheme: <NSMutableURLRequest http://www.site.nl/login>
[INFO] :   webview load triggered (url: http://www.site.nl/login)
[DEBUG] :  New scheme: <NSMutableURLRequest http://www.site.nl/logged_in>
As you can see, for some reason the second load event isn't fired. It needs to be fired so I can do a check in login status and close the view/window. In 3.0.2.GA and before we didn't have this problem.

Anybody got a clue?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>