PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → GPS - Disable Notification Handling - Desabilita Notificacao Movimentacao
GPS - Disable Notification Handling - Desabilita Notificacao Movimentacao
Started by adrianoboller, Nov., 24 2014 12:51 PM - No answer
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on November, 24 2014 - 12:51 PM
Procedure GPS_DesabilitaNotificacaoMovimentacao(LOCAL Msg, LOCAL WindowSN)

// Finalidade: Desativa a exibição de mensagens passadas ao usuário, cancelando a atualização dos pontos.

Retorno is string = ""

IF GPSStatus() = gpsEnabled OR GPSStatus() = gpsAvailable THEN

GPSFollowMovement()

IF Msg <> "" AND WindowSN = "S" THEN
Info(Msg)
Retorno = Msg
ELSE IF Msg <> "" AND WindowSN <> "S" THEN
Retorno = Msg
END

ELSE IF GPSStatus() = gpsDisabled THEN

Info("GPS Desabilitado!")

ELSE IFGPSStatus() = gpsOffService OR GPSStatus() = gpsUnavailable OR GPSStatus() = gpsError THEN

Info("Região sem serviço de GPS",ErrorInfo())

END

RESULT(Retorno)