1. harishdsm's Avatar
    I am working on an android application that is used for tracking mobiles.
    I have used location listener to get the latitude & longitude values from the GPS at a time interval of 10 secs.
    In case of internet connectivity,the values(lat,longi) are directly sent to my server and if there is internet failure values are stored in phone's local database and then sent to the server.
    The app was working fine while tested internally and right now the problem found is :
    Run-time Location permission which the app asks at the start up()is getting turned off automatically at some point during the real tracking due to some unknown reason.
    I went several trips(outside) for tracking purpose,the same app is working fine and at times it is not working in the same route.
    I have deeply monitored and found that run-time location permission is getting off(by creating a log) ,so the listener is not able to get the location updates thereby app gets hanged and tracking stops.
    Please help me with this so that i can find a solution.
    10-10-2017 05:42 AM

Similar Threads

  1. Possible new user of android
    By imran_a in forum New to the Forums? Introduce Yourself Here!
    Replies: 20
    Last Post: 05-22-2018, 12:02 AM
  2. Samsung Galaxy S8 - Bluetooth not advertsing if screen is off
    By Android Central Question in forum Samsung Galaxy S8 & S8+
    Replies: 1
    Last Post: 10-10-2017, 02:15 PM
  3. Replies: 0
    Last Post: 10-10-2017, 05:24 AM
  4. Samsung Galaxy S8 - Bluetooth not advertsing if screen is off
    By Android Central Question in forum Ask a Question
    Replies: 0
    Last Post: 10-10-2017, 03:51 AM
  5. Forget All Cars Android Auto Cannot Reconnect
    By Android Central Question in forum Android Auto
    Replies: 0
    Last Post: 10-10-2017, 03:47 AM
LINK TO POST COPIED TO CLIPBOARD