BeoCode/Weather
Archived
6
0
Fork
You've already forked Weather
11

[SUP] Localisation detection #64

Open
opened 2023年01月30日 19:34:23 +01:00 by manup · 16 comments

What is your problem?

I can specify a location, but I'd prefer Weather to select the current one.

So I tap on the symbol at the right of City (or whatever it is in english, I'm using a french UI) and... I get on the screen:

Détection de la localisation
Détection de votre localisation...

Which I guess you'll understand even if you don't read french, and nothing else, even dozens of minutes later.

Yes, Weather has the Position authorisation, and I tried to remove it and re-authorise it back.

So, what did I miss? And, the most important, what do I do to make it work?

Environment data

  • Android version: 12

  • Device model:Fairphone 3+

  • Stock or customized system: LineageOS 19.1

  • Weather app version:3.19.1

### What is your problem? I can specify a location, but I'd prefer Weather to select the current one. So I tap on the symbol at the right of City (or whatever it is in english, I'm using a french UI) and... I get on the screen: Détection de la localisation Détection de votre localisation... Which I guess you'll understand even if you don't read french, and nothing else, even dozens of minutes later. Yes, Weather has the Position authorisation, and I tried to remove it and re-authorise it back. So, what did I miss? And, the most important, what do I do to make it work? ### Environment data - Android version: 12 - Device model:Fairphone 3+ - Stock or customized system: LineageOS 19.1 - Weather app version:3.19.1

If you granted the location permission it should work, but it may take some time until the position is found...
I need to look into it (for the moment I will add the bug-label).

If you granted the location permission it should work, but it may take some time until the position is found... I need to look into it (for the moment I will add the bug-label).
Author
Copy link

Thanks for the answser @Beowulf. By "it may take some time until the position is found", you don't mean half an hour, I suppose. And even 1/2h later, it's still displaying the same message.

Other apps that use positioning take a few seconds to do it.

Thanks for the answser @Beowulf. By "it may take some time until the position is found", you don't mean half an hour, I suppose. And even 1/2h later, it's still displaying the same message. Other apps that use positioning take a few seconds to do it.

1/2h is not normal, will try to reproduce and fix it

1/2h is not normal, will try to reproduce and fix it

I got the same issue, also with LineAgeOS on a FairPhone3.

I got the same issue, also with LineAgeOS on a FairPhone3.
Author
Copy link

Hi, that said with latest version 3.20 recently updated on my phone, it seems to be working good. I mean, the app is able to change location. At least when I go into the location setting and tap on the "compass" logo (or whatever it is supposed to be) right to the current (previous) location.

Hi, that said with latest version 3.20 recently updated on my phone, it seems to be working good. I mean, the app is able to change location. At least when I go into the location setting and tap on the "compass" logo (or whatever it is supposed to be) right to the current (previous) location.

Weird, I also have the 3.20, I have the location permission "allowed when app is in use", but the location icon doesn't show in the top bar (it shows if I open other apps).
I'm stuck at "detect location : getting your location..."
Could it be that I got LineAgeOS 18.1 and you have 19.1?

Weird, I also have the 3.20, I have the location permission "allowed when app is in use", but the location icon doesn't show in the top bar (it shows if I open other apps). I'm stuck at "detect location : getting your location..." Could it be that I got LineAgeOS 18.1 and you have 19.1?
Author
Copy link

I can't say, but to be precise here's what I do:

  • open Weather app
  • tap on the pen right to the displayed location
  • clear the field under City (or Town... Ville in french)
  • tap on the compass at the right of this (cleared) field.

But as I'm doing it to describe it properly down here, it's not working anymore... :-/

It looks like the app does not activate the GPS to find out where the phone is.

Apart that, I get an app that locates my phone every X minutes (PhoneTrack to name it), maybe there's a side effect between the apps?

I can't say, but to be precise here's what I do: * open Weather app * tap on the pen right to the displayed location * clear the field under City (or Town... Ville in french) * tap on the compass at the right of this (cleared) field. But as I'm doing it to describe it properly down here, it's not working anymore... :-/ It looks like the app does not activate the GPS to find out where the phone is. Apart that, I get an app that locates my phone every X minutes (PhoneTrack to name it), maybe there's a side effect between the apps?

Well then we have the same issue.
I don't have PhoneTrack installed and I'm not aware of any installed apps having conflicts with each other.

Well then we have the same issue. I don't have PhoneTrack installed and I'm not aware of any installed apps having conflicts with each other.

I'll take a closer look at it later today.

I'll take a closer look at it later today.
Beowulf added this to the 3.21 milestone 2023年04月12日 17:45:30 +02:00

If possible, test with 3.21-pre1 (available in my repo).

If possible, test with 3.21-pre1 (available in my repo).
Author
Copy link

Hi, thanks @Beowulf to try and solve this issue.

But Weather as of 3.21-pre1 does not solve it: exactly the same as os previous release. The cuurrent location is not detected, I need to type it in the City field and select it in the value(s) proposed.

Hi, thanks @Beowulf to try and solve this issue. But Weather as of [3.21-pre1](https://codeberg.org/BeoCode/Weather/releases/tag/3.21-pre1) does not solve it: exactly the same as os previous release. The cuurrent location is not detected, I need to type it in the City field and select it in the value(s) proposed.

Are you getting an error message?

Are you getting an error message?
Author
Copy link

AH yes!, I didn't care but yes, here's the message:

Standort nicht gefunden. Bitte nochmal versuchen.

AH yes!, I didn't care but yes, here's the message: > Standort nicht gefunden. Bitte nochmal versuchen.

If you try again will you get a location?
Are you using the exact or coarse location (depends on the granted permission)?

If you try again will you get a location? Are you using the exact or coarse location (depends on the granted permission)?
Author
Copy link

If you try again will you get a location?

Just gave it a try and it has worked.
But sometimes it works at the 1st try.

The thing is, when an app activates the GPS, a green dot is displayed at the top roght of the screen. When in Weather this happens, the location is detected.

Are you using the exact or coarse location (depends on the granted permission)?

Exact location (GPS + network)

> If you try again will you get a location? Just gave it a try and it has worked. But sometimes it works at the 1st try. The thing is, when an app activates the GPS, a green dot is displayed at the top roght of the screen. When in Weather this happens, the location is detected. > Are you using the exact or coarse location (depends on the granted permission)? Exact location (GPS + network)

OK, thanks...

OK, thanks...
Commenting is not possible because the repository is archived.
No Branch/Tag specified
main
translation
3.21-pre1
3.20
3.20-pre2
3.20-pre1
3.19.1
3.19
3.18.1
3.18
3.17
3.17-pre2
3.17-pre1
3.16
3.16-pre1
3.15
3.15-pre1
3.14
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeoCode/Weather#64
Reference in a new issue
BeoCode/Weather
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?