RocketChat / Rocket.Chat.Cordova

Rocket.Chat Cross-Platform Mobile Application via Cordova (DEPRECATED)
MIT License
104 stars 109 forks source link

Only locate user if he uses the geolocation post button #127

Closed TheReal1604 closed 5 years ago

TheReal1604 commented 7 years ago

Hey Guys,

after the update that was yesterday / today release I found that the GPS seems active all the time when the users use the RC app. This is represented by the gps icon in the right corner. You see this in the screenshot.

In my opinion this could lead to battery issues then heavy using this app. A possible solution could be to only locate the user if he press the button and then show the popup of the current location.

photo-2016-08-23-12-19-49_3510

Any suggestions?

Greetings TheReal

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

rodrigok commented 7 years ago

Hi @TheReal1604, we keep tracking geo to have a very quick dialog to send geo when you click on button.

Maybe we should add an condition to get geo on click for mobile and keep tracking on desktop.

The code should check the position 1 time in each 10 seconds as you can see here maybe the plugin for cordova does not support this feature and keep tracking the geo

TheReal1604 commented 7 years ago

@rodrigok Thanks for the explanation. But it's not a good idea to locate the user before he uses this function.. Can establish distrust to the server admin or to the developers. ala "What the heck? Why keeps this app locating me because I don't use this feature." Okay, every user can deactivate the right to locate, but then he loses the ability to use this nice feature at all. IMHO.