@transistorsoft/capacitor-background-geolocation 4.10.0 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/src/main/java/com/transistorsoft/bggeo/capacitor/BackgroundGeolocationPlugin.java
CHANGED
|
@@ -19,6 +19,7 @@ import com.transistorsoft.locationmanager.adapter.TSConfig;
|
|
|
19
19
|
import com.transistorsoft.locationmanager.adapter.callback.TSActivityChangeCallback;
|
|
20
20
|
import com.transistorsoft.locationmanager.adapter.callback.TSBackgroundTaskCallback;
|
|
21
21
|
import com.transistorsoft.locationmanager.adapter.callback.TSCallback;
|
|
22
|
+
import com.transistorsoft.locationmanager.adapter.callback.TSAuthorizationCallback;
|
|
22
23
|
import com.transistorsoft.locationmanager.adapter.callback.TSConnectivityChangeCallback;
|
|
23
24
|
import com.transistorsoft.locationmanager.adapter.callback.TSEmailLogCallback;
|
|
24
25
|
import com.transistorsoft.locationmanager.adapter.callback.TSEnabledChangeCallback;
|
|
@@ -48,6 +49,7 @@ import com.transistorsoft.locationmanager.data.SQLQuery;
|
|
|
48
49
|
import com.transistorsoft.locationmanager.device.DeviceInfo;
|
|
49
50
|
import com.transistorsoft.locationmanager.device.DeviceSettingsRequest;
|
|
50
51
|
import com.transistorsoft.locationmanager.event.ActivityChangeEvent;
|
|
52
|
+
import com.transistorsoft.locationmanager.event.AuthorizationEvent;
|
|
51
53
|
import com.transistorsoft.locationmanager.event.ConnectivityChangeEvent;
|
|
52
54
|
import com.transistorsoft.locationmanager.event.GeofenceEvent;
|
|
53
55
|
import com.transistorsoft.locationmanager.event.GeofencesChangeEvent;
|
|
@@ -56,6 +58,7 @@ import com.transistorsoft.locationmanager.event.LocationProviderChangeEvent;
|
|
|
56
58
|
import com.transistorsoft.locationmanager.event.TerminateEvent;
|
|
57
59
|
import com.transistorsoft.locationmanager.geofence.TSGeofence;
|
|
58
60
|
import com.transistorsoft.locationmanager.http.HttpResponse;
|
|
61
|
+
import com.transistorsoft.locationmanager.http.HttpService;
|
|
59
62
|
import com.transistorsoft.locationmanager.location.TSCurrentPositionRequest;
|
|
60
63
|
import com.transistorsoft.locationmanager.location.TSLocation;
|
|
61
64
|
import com.transistorsoft.locationmanager.location.TSWatchPositionRequest;
|
|
@@ -1093,13 +1096,19 @@ public class BackgroundGeolocationPlugin extends Plugin {
|
|
|
1093
1096
|
}
|
|
1094
1097
|
});
|
|
1095
1098
|
|
|
1096
|
-
|
|
1097
1099
|
bgGeo.onSchedule(new TSScheduleCallback() {
|
|
1098
1100
|
@Override
|
|
1099
1101
|
public void onSchedule(ScheduleEvent event) {
|
|
1100
1102
|
handleEvent(BackgroundGeolocation.EVENT_SCHEDULE, event.getState());
|
|
1101
1103
|
}
|
|
1102
1104
|
});
|
|
1105
|
+
|
|
1106
|
+
HttpService.getInstance(getContext()).onAuthorization(new TSAuthorizationCallback() {
|
|
1107
|
+
@Override
|
|
1108
|
+
public void onResponse(AuthorizationEvent event) {
|
|
1109
|
+
handleEvent(BackgroundGeolocation.EVENT_AUTHORIZATION, event.toJson());
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
1103
1112
|
}
|
|
1104
1113
|
|
|
1105
1114
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transistorsoft/capacitor-background-geolocation",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.1",
|
|
4
4
|
"description": "The most sophisticated cross platform Capacitor background location tracking & geofencing module with battery-conscious motion-detection intelligence",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|