Add API setGeofenceInterval for Android

This commit is contained in:
JoshLi
2018-12-28 17:27:31 +08:00
parent 5a8a926c50
commit 16c3c96844
4 changed files with 56 additions and 3 deletions
+12
View File
@@ -463,6 +463,18 @@ JPushPlugin.prototype.setPushTime = function(weekdays, startHour, endHour) {
}
};
JPushPlugin.prototype.setGeofenceInterval = function(interval) {
if (device.platform === "Android") {
this.callNative("setGeofenceInterval", [interval], null);
}
};
JPushPlugin.prototype.setMaxGeofenceNumber = function(maxNumber) {
if (device.platform === "Android") {
this.callNative("setMaxGeofenceNumber", [maxNumber], null);
}
};
if (!window.plugins) {
window.plugins = {};
}