cordova-plugin-mserviceinterface-2.0 1.0.29 → 1.0.30
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/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/mInterfaceService.java +13 -10
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
3
3
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
4
|
id="cordova-plugin-mserviceinterface-2.0"
|
|
5
|
-
version="1.0.
|
|
5
|
+
version="1.0.30">
|
|
6
6
|
<name>mserviceinterface-2.0</name>
|
|
7
7
|
<description>This plugin establishes the connection to the native interface and performs the requested task.</description>
|
|
8
8
|
<author>selfservit@gmail.com</author>
|
|
@@ -208,16 +208,19 @@ public class mInterfaceService extends Service implements com.google.android.gms
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
setLocationTimeInterval
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
211
|
+
if(setLocationTimeInterval == null){
|
|
212
|
+
setLocationTimeInterval = new Timer();
|
|
213
|
+
setLocationTimeInterval.schedule(timerTask, Integer.parseInt(serverDateObj.optString("location_fetch_interval_in_seconds")), Integer.parseInt(serverDateObj.optString("location_fetch_interval_in_seconds")));
|
|
214
|
+
MINIMUM_INTERVAL = Long.parseLong(serverDateObj.optString("location_fetch_interval_in_seconds").toString());
|
|
215
|
+
createLocationRequest();
|
|
216
|
+
this.mGoogleApiClient = new GoogleApiClient.Builder(this)
|
|
217
|
+
.addConnectionCallbacks(this)
|
|
218
|
+
.addOnConnectionFailedListener(this)
|
|
219
|
+
.addApi(LocationServices.API)
|
|
220
|
+
.build();
|
|
221
|
+
mGoogleApiClient.connect();
|
|
222
|
+
};
|
|
223
|
+
|
|
221
224
|
}
|
|
222
225
|
}
|
|
223
226
|
} else {
|