How to Obtain the Current Location of a Terminal

From wizarPOS

Overview:

This guide demonstrates how to develop a simple application using the Android SDK that tracks the User Location. You can download the demo.

Handling Different Terminal Models (Q2/K2):

  • Terminals Without GPS Module: For terminals lacking a GPS module, location tracking relies on network-based location services.
  • Settings for Accurate Location: Ensure that the 'Location' setting on the terminal is turned on. For better accuracy, set the Location mode to either 'High accuracy' or 'Battery saving'.

Working with Devices without Google Play Services:

  • Importance for Network Provider-Based Applications: If your application uses a network provider for location services and is running on a device without Google Play Services, additional steps are necessary.
  • Installing Required APKs: Download and install the backend apk and nlp apk on the device.
  • Device Restart: After installation, restart the device to ensure proper functioning.
  • Result: Post-restart, the application should be able to accurately fetch the location.