phonegap/phonegap-plugins — Issue #292: ChildBrowser.onLocationChange timing inconsistency on iPhone and Android
Author: kojiishi
Created: 2011-12-20 04:17:56+00:00
State: open

ChildBrowser.onLocationChange fires on webViewDidFinishLoad on iPhone, which means when it finished loading the page, while Android uses onPageStarted which means when navigation starts. I wish these two APIs be consistent across platforms.

I prefer iPhone behavior. Although the naming looks like it should fire when navigation starts, chances are that if you close ChildBrowser in onLocationChange, the navigation may not complete on the server side, and its response may not received.