PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Enables the management of location tracking in a WINDEV Mobile application.
Example
// Enable the push notifications
geoTrackingEnable(ValidateTrackingActivation)
// Manage location tracking
PROCEDURE ValidateTrackingActivation(bTrackingEnabled is boolean, cError is string)
IF NOT bTrackingEnabled THEN
Error(cError)
RETURN
END

STC_Loc = "Location enabled"
Syntax
geoTrackingEnable(<Procedure name>)
<Procedure name>: Character string (with or without quotes)
Name of WLanguage procedure called:
  • when the deactivation was performed,
  • if an error occurred:
    • iPhone/iPad activation request refused by the user.
    • Android erreur while accessing the Google Play Services.
This procedure has the following format:
PROCEDURE <Procedure name>(<Tracking enabled> is boolean, <Error> is string)
  • <Tracking enabled> is a boolean indicating whether tracking is enabled (True) or not (False).
  • <Error> is a character string corresponding to the text of the activation error. This parameter is initialized only if <Tracking Enabled> is set to False.
Remarks
  • This function is asynchronous.
  • iPhone/iPad This function can be used only if the location rights have been granted to the application. These rights are enabled during the generation.
  • Android From Android 8, to reduce the applications' battery usage, the system drastically limits the frequency for receiving device locations when the application is running in the background. See https://developer.android.com/about/versions/oreo/background-location-limits for more details.
Component : wp250device.dll
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment