Software Archive
Read-only legacy content
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
17065 Discussions

Device Events

Kameron_B_
Beginner
52 Views

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?

0 Kudos
1 Reply
Rakshith_K_Intel
Employee
52 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.

 

Reply