Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
7 Views

Device Events

I am looking into several different platforms for an current mobile development project. Can Intel XDK 'listen' for device events? For example, is there a way to track geo location and use the current speed (MPH) and once the device is moving, say at 5MPH, it can cause an event that trigger an action? Also, can the app control the device such as the lock the screen? Can I create an action that locks the screen when a specific event happens?

Tags (2)
0 Kudos
1 Reply
Highlighted
7 Views

You can use the standard Cordova plugin for GeoLocation to track geolocation and speed, there are also background geolocation plugins available. Refer to the Intel XDK sample projects for examples of geolocation, here is documentation for geolocation plugin:

https://github.com/apache/cordova-plugin-geolocation

For locking screen via app, you may have to write your own plugin or look for any available plugins out there.

 

0 Kudos