forked from github/cordova-android
Use polling if PhoneGap app is loaded from server, since XHR doesn't work to localhost due to cross-domain security policy.
This commit is contained in:
@@ -300,6 +300,9 @@ public class DroidGap extends PhonegapActivity {
|
||||
else {
|
||||
this.baseUrl = this.url;
|
||||
}
|
||||
|
||||
// Initialize callback server
|
||||
this.callbackServer.init(url);
|
||||
|
||||
this.runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
|
||||
Reference in New Issue
Block a user