Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No effect when I set the LOCK_SCREEN status #5

Closed
zhoutongbie opened this issue Apr 16, 2020 · 2 comments
Closed

No effect when I set the LOCK_SCREEN status #5

zhoutongbie opened this issue Apr 16, 2020 · 2 comments

Comments

@zhoutongbie
Copy link

version :android 8.1.0

No effect when I set the LOCK_SCREEN status

why?

try {
  result = await WallpaperManager.setWallpaperFromAsset(
      assetPath, WallpaperManager.LOCK_SCREEN);
} on PlatformException {
  result = 'Failed to get wallpaper.';
}
@AdityaMulgundkar
Copy link
Owner

Hi @zhoutongbie, MI UI does not allow you to set a Lock Screen wallpaper, as mentioned here: https://in.c.mi.com/thread-1252992-1-0.html

This is a known issue for MI phones & I'm looking at possible solutions right now. If I find a fix for it I'll update you here.

In case you're facing this issue on some other device (other than MI), please provide more details such as:

  • log of your flutter doctor
  • way/ steps to reproduce the error
  • what version of the wallpaper_manager plug-in are you using, in your pubspec.yaml?

@codingstark-dev
Copy link

same issue facing! I am also using Xiaomi device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants