mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Merge branch 'master' of git://github.com/phonegap/phonegap-android
This commit is contained in:
commit
2a786044de
@ -805,13 +805,11 @@ PhoneGap.JSCallback = function() {
|
||||
console.log("JSCallback Error: Bad request. Stopping callbacks.");
|
||||
}
|
||||
|
||||
// If error, restart callback server
|
||||
// If error, revert to polling
|
||||
else {
|
||||
console.log("JSCallback Error: Request failed.");
|
||||
prompt("restartServer", "gap_callbackServer:");
|
||||
PhoneGap.JSCallbackPort = null;
|
||||
PhoneGap.JSCallbackToken = null;
|
||||
setTimeout(PhoneGap.JSCallback, 100);
|
||||
PhoneGap.UsePolling = true;
|
||||
PhoneGap.JSCallbackPolling();
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -938,7 +936,11 @@ PhoneGap.includeJavascript = function(jsfile, successCallback) {
|
||||
*/
|
||||
var PluginManager = {
|
||||
addService: function(serviceType, className) {
|
||||
try {
|
||||
navigator.app.addService(serviceType, className);
|
||||
} catch (e) {
|
||||
console.log("Error adding service "+serviceType+": "+e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -10,5 +10,5 @@
|
||||
# Indicates whether an apk should be generated for each density.
|
||||
split.density=false
|
||||
# Project target.
|
||||
target=android-8
|
||||
target=android-12
|
||||
apk-configurations=
|
||||
|
Loading…
Reference in New Issue
Block a user