codenameakshay / async_wallpaper

https://pub.dev/packages/async_wallpaper
MIT License
22 stars 21 forks source link

setLiveWallpaper doesn't work on xiaomi 10 miui 14 #25

Open TDSSSzero opened 1 year ago

TDSSSzero commented 1 year ago

Describe the bug Everything works fine when I set up static images(jpg/png) on MIUI14,but when i use liveWallpaper ,both the lock screen and home screen changed back to the default wallpaper, and show toast successfully. This may be a problem with MIUI itself, as I am still testing on Samsung and Huawei phones, and they are normal. I want to know if there is a way to catch this exception and handle it. sorry,my english not good,thank you watch this.

code image

Screenshots Screenshot_2023-07-10-11-13-01-545_tdsss save sav Screenshot_2023-07-10-11-16-16-841_com miui home

Flutter:

Dart:

Additional context phone: xiaomi 10 android version Android 13 MIUI 14.

naeem-shah commented 3 months ago

I have fix this issue and created a pull request modify your pubspec.yaml

async_wallpaper:
    git:
      url: https://github.com/codenameakshay/async_wallpaper.git
      ref: 10ae084c26d644a8c653aa0e63265d41a5603c8c