0
我使用科爾多瓦1.8.0和舊版本的Childbrowser(新的似乎不工作)。Phonegap /科爾多瓦1.8.0:ChildBrowser不工作onLocationChange
無論如何,直到昨天晚上,這段代碼沒有任何問題,今天早上我點擊運行,cb.onLocationChange停止工作。
我不明白這是可能的。有沒有人可以給我提示? onLocationChange行得還給我任何的console.log :(
var cb = ChildBrowser.install(); // install our ChildBrowser (cb)
console.log("AAAA We don't have a user saved yet");
oauth = OAuth(options);
oauth.get('https://api.twitter.com/oauth/request_token',
function(data) {
console.log("AAAA Sent request token");
requestParams = data.text;
cb.showWebPage('https://api.twitter.com/oauth/authorize?'+data.text); // This opens the Twitter authorization/sign in page
console.log("AAAAAA onLocation chenge");
cb.onLocationChange = function(loc){ console.log("AAAAAA"); Twitter.success(loc); }; // When the ChildBrowser URL changes we need to track that
},
function(data) {
console.log("ERROR: "+data);
}
);