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?
No. This is not possible. GeoLocation is not aware about controllers. Second call will replace previous notifications settings.