There are two types of app obtaining positioning in the background. One is to obtain positioning in the ordinary background, and the other is to obtain positioning in the continuous background. Ordinary background is used to obtain positioning. After 8.0, requestAlwaysAuthorization is required. How can he request like this? Normally, it is just like your usual app. After entering the background, didUpdateLocations can still get the data for a while. How long will it take? About 10 minutes. After 10 minutes, you won’t be able to get it. Continue to get the location in the background, and The common difference is that you need to check Location update in Background Modes. Then as long as your app is not closed, your didUpdateLocations method will always get the location. Continue to get the background location app when it is put on the shelf, unless you have Tell him for a very obvious reason that I must obtain continuous positioning in the background, otherwise I will reject you. In addition, I will also ask you to add the sentence "Continued use of GPS running in the background can dramatically decrease battery life."# in your app introduction. 🎜🎜#Don’t ask me why I know it so clearly, because I was denied this permission several times in the past few weeks. . . .
There are two types of app obtaining positioning in the background. One is to obtain positioning in the ordinary background, and the other is to obtain positioning in the continuous background.
Ordinary background is used to obtain positioning. After 8.0, requestAlwaysAuthorization is required. How can he request like this?
Normally, it is just like your usual app. After entering the background, didUpdateLocations can still get the data for a while. How long will it take? About 10 minutes. After 10 minutes, you won’t be able to get it.
Continue to get the location in the background, and The common difference is that you need to check Location update in Background Modes. Then as long as your app is not closed, your didUpdateLocations method will always get the location.
Continue to get the background location app when it is put on the shelf, unless you have Tell him for a very obvious reason that I must obtain continuous positioning in the background, otherwise I will reject you. In addition, I will also ask you to add the sentence "Continued use of GPS running in the background can dramatically decrease battery life."# in your app introduction. 🎜🎜#Don’t ask me why I know it so clearly, because I was denied this permission several times in the past few weeks. . . .