Skip to content

Change Mainpage and geolocation activewatch and position changed event #852

Closed

Description

@itg-assistant

Ser Gar asked 2017-05-21 18:49:28 UTC

Hi.
First question:
Its normal that geolocation events survive when I change Application.MainPage? Because it doesn't stops in my tests

Second question:
Should positionchanged event stops when set ActiveWatch = false? Because never stops in my tests, even if is false on page load...

Thanks in advance!

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-05-22 22:08:11 UTC

    You are correct, there is a bug in Geolocation.js _applyActiveWhatch(). I have attached the fixed file in case you want to recompiled the extension.

    For the MainPage, when you switch pages, the previous one is still valid and it may received events. You can either stop ActiveWatch, after fixing the bug :) or dispose the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions