diff --git a/framework/src/org/apache/cordova/GeoBroker.java b/framework/src/org/apache/cordova/GeoBroker.java index d3bf6b34..5b0714cd 100755 --- a/framework/src/org/apache/cordova/GeoBroker.java +++ b/framework/src/org/apache/cordova/GeoBroker.java @@ -141,6 +141,14 @@ public class GeoBroker extends Plugin { this.gpsListener = null; } + /** + * Called when the view navigates. + * Stop the listeners. + */ + public void onReset() { + this.onDestroy(); + } + public JSONObject returnLocationJSON(Location loc) { JSONObject o = new JSONObject();