LawnchairLauncher / lawnchair

No clever tagline needed.
https://lawnchair.app
Other
9.16k stars 1.2k forks source link

[BUG] Weather no longer displayed on "At a Glance" #3657

Closed ianmlunaq closed 8 months ago

ianmlunaq commented 11 months ago

Describe the bug

A couple days ago the At a Glance widget stopped displaying the current weather. It had been working correctly this past year that I've been using Lawnchair, but it suddenly disappeared and I have no idea why. Everything else seems to work correctly, it'll show me the battery status, and Now Playing. I've tried turning the weather off and on individually on the widget, I've tried turning the entire widget off and on, I've tried restarting the launcher and restarting my phone, and I've tried reinstalling the launcher, all to no avail. I'm sorry that I can't provide any more details, but any help would be appreciated.

Steps to reproduce

Steps to reproduce the behavior:

  1. I have no clue, I'm so sorry.

Expected behavior

The expected behavior is that the At a Glance widget would show the current weather.

Screenshots

Screenshot_20231010-093916

Device information

Additional context

No response

KTibow commented 11 months ago

Google app updated their At A Glance, causing Lawnchair's to stop working Try disabling Lawnchair's and adding Google's At A Glance widget

ianmlunaq commented 11 months ago

Google app updated their At A Glance, causing Lawnchair's to stop working Try disabling Lawnchair's and adding Google's At A Glance widget

I see, thank you.

jayadev8322 commented 11 months ago

Problem solved?

ianmlunaq commented 11 months ago

Problem solved?

Sort of. What I understand is that due to an update to the google app that introduced a redesigned "at a glance" widget, the integrated "at a glance" in Lawnchair just can't access or display the weather information. So I just use the new google at a glance widget instead of Lawnchair's. But I guess there is still the problem of Lawnchair's widget being slightly broken now. Screenshot_20231011-081950

tushar1998 commented 11 months ago

Same issue on my s23 ultra lawnchair 12.1

st0neh commented 11 months ago

I'm not sure that having to use a completely different Google widget is exactly a "fix" for the at a glance in Lawnchair being broken. Why would you close this lol?

KTibow commented 11 months ago

It's Google's fault, and we don't know if this is even possible to fix

st0neh commented 11 months ago

So the plan is just to ignore it and tell people to use a Google widget?

That's a pretty lame response.

KTibow commented 11 months ago

Don't blame me, I'm just a random Lawnchair user

AndersonARS commented 10 months ago

Same problem on Motorola moto g 5G plus Android 11. It started after updating the Google app. Try using the beta version of it without success.

st0neh commented 10 months ago

Thanks to whoever opened this. It's the one thing I'm missing.

forestation commented 10 months ago

The Google At A Glance isn't a good alternative since it takes up more space on the home screen, and it doesn't allow you to click on the date to open the calendar. Hope Lawnchair can fix its own At A Glance soon.

KTibow commented 10 months ago

Clicking on the date works fine for me

forestation commented 10 months ago

Clicking on the date works fine for me

It did not work earlier today, though it does work now. When I tried earlier, clicking on any part of Google At A Glance took me to Weather.

st0neh commented 10 months ago

Disclaimer I'm no programmer but I did manage to dig around and find that

lawnchair/src/app/lawnchair/smartspace/provider/SmartspaceWidgetReader.kt

Appears to contain a bunch of weather related code including the URL it gets the weather from (https://www.google.com/search?q=weather), if this helps in any way.

GregLiv commented 10 months ago

Had the same issue, OnePlus 7t pro, lawnchair 12.1.0 Alpha 4. I uninstalled Google app updates and re-updated Goggle app via playstore, weather is back to at a glance now.

tushar1998 commented 10 months ago

@GregLiv confirmed the above method works many thanks 👍

forestation commented 10 months ago

@GregLiv that solution worked on Samsung Galaxy Tab. Brilliant, thank you!

In case anyone can't remember how to uninstall updates to built in apps, it's under Manage Apps & Devices in the Play Store app.

EDIT: Unfortunately that solution worked for less than an hour. The weather has disappeared again 🙁

st0neh commented 10 months ago

I suspect the reason it's working then failing again may be due to the Google app being reset to the old weather page when you uninstall updates.

As soon as your Google app switches to the newer weather page, it kills the Lawnchair at a glance weather.

forestation commented 10 months ago

I reinstalled the Google app updates right away, and At A Glance still worked. It took a while (but < 1 hr) for it to stop working again.

By the way it's not just that the weather disappears from the Lawnchair At A Glance. Take a look at the screenshot in @ianmlunaq's post above, you can see that even if you manually install the stock Android At A Glance, it doesn't look right - I think it might be an older version?

The current Android At A Glance widget doesn't have that black gear icon on the right. When @GregLiv's fix above briefly worked, I was seeing the correct current display.

st0neh commented 10 months ago

I just tested and when the weather disappeared from at a glance, I opened weather and saw it flip from the old to the new layout.

For now I'm using Smartspacer to get something close to the Lawnchair at a glance widget at least.

forestation commented 9 months ago

As of yesterday the "fix" whereby we manually add the stock Android At A Glance widget no longer works. I had added widget to the home screen, but it disappeared yesterday and cannot be added back.

st0neh commented 9 months ago

Google also broke the new at a glance widget in the last couple days too.

Fun times.

forestation commented 9 months ago

Google also broke the new at a glance widget in the last couple days too.

Fun times.

It did? Seems to be working fine on my Pixel phone.

st0neh commented 9 months ago

https://cdn.discordapp.com/attachments/409149581348306946/1176647323087028314/Screenshot_20231121-141615.png?ex=656fa136&is=655d2c36&hm=6d5b0a2727c489017087247c92c641d3b69384235c3e7124e506f65d7719c4c3&

If I uninstall updates for the Google app it works fine until the Google app updates again.

forestation commented 9 months ago

https://cdn.discordapp.com/attachments/409149581348306946/1176647323087028314/Screenshot_20231121-141615.png?ex=656fa136&is=655d2c36&hm=6d5b0a2727c489017087247c92c641d3b69384235c3e7124e506f65d7719c4c3&

If I uninstall updates for the Google app it works fine until the Google app updates again.

Hmm. My Pixel is on the latest version of the Google app (and Google Play and Security Updates) and I've had no issues.

st0neh commented 9 months ago

Yeah it's a weird one. It works when the Google app says it has 5 widgets, it fails when the Google app says it has 6 widgets.

forestation commented 9 months ago

I just realized I've been mixing up a couple of things. I'll try to clarify below:

On Pixel phones, the stock At A Glance isn't a widget per se. It's a built-in feature of the Home screen and can't be uninstalled, though it can be disabled. When Lawnchair used to work properly, it came with this feature as well.

There is a separate widget called the Google Assistant At A Glance listed under the Google app. It looks and behaves a little differently than the stock At A Glance on Pixel phones. Until yesterday this widget could be added to Lawnchair, but not any more.

(You said the widget was broken by Google yesterday, but I just installed it on my Pixel and it seems to be working fine. I have 6 widgets listed under Google btw.)

Whatever Google is doing seems to have caused Lawnchair to be unable to display either version of At A Glance -- the stock Pixel At A Glance feature or the Google Assistant At A Glance widget.

st0neh commented 9 months ago

Oh I know the difference, I was just saying that Google somehow managed to break their new widget with Google app updates too.

forestation commented 9 months ago

You might've known the difference, but I don't think everyone else knew what we were talking about.

The Google widget isn't broken for me.

st0neh commented 9 months ago

It works for a while for me, then just completely dies.

Absolutely nothing else changed on my phone between it working fine and it being busted other than a Google Play system update and the Google app updating.

st0neh commented 9 months ago

https://cdn.discordapp.com/attachments/409149581348306946/1176680126327554110/Screenshot_20231121-162632.png?ex=656fbfc3&is=655d4ac3&hm=0aa488a578f0a8cdd7c199d57a9b6b438c25b67fec07896e533889d75b103aa5&

And now it looks like this.

What the hell is going on lol.

imsandeshpandey commented 8 months ago

Uninstall updates for the google app from settings and it'll work again

ItxWeird commented 8 months ago

Uninstall updates for the google app from settings and it'll work again

With the latest 14-dev build, that isn't necessary, this issue was fixed.

@MrSluffy correct me if I'm wrong but you fixed this right?

st0neh commented 8 months ago

The weather is now displaying again on the Android 14 builds.

However mine is now teeny tiny lol.

Looks like the homescreen app grid size changes the size of the built in at a glance, which is weird.

Also the widget version still doesn't work.

MrSluffy commented 8 months ago

Uninstall updates for the google app from settings and it'll work again

With the latest 14-dev build, that isn't necessary, this issue was fixed.

@MrSluffy correct me if I'm wrong but you fixed this right?

yes fixed now in latest 14-dev build

MrSluffy commented 8 months ago

I forgot to linked this too

MrSluffy commented 8 months ago

Fixed now in :