1 Reply Latest reply on Jan 24, 2013 7:47 AM by Alexey Tikhvinsky

    can we call GeoLocation.set_notification() multiple times in multiple places?

      Now we use GeoLocation API in different 2 scenarios in our app:

      1. Log the location information every 2 minutes;

      2. Monitor the location for every 10 seconds.

       

      The logic are in 2 different controllers,  one solution one is to use  GeoLocation.set_notification() only once, set the callback interval to 10 seconds, and implement 2 scenarios in the callback;

      I feel this is a kind of messy.

       

      I wonder if we can call the GeoLocation.set_notification() method twice in different controller, and set different interval values, so that we can separate the above 2 logic

       

      Is it possible?

       

      Thanks