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

AppWidgetPinnedReceiver not work on Redmi device #457

Open
DawnNguyenAhiho opened this issue Feb 15, 2024 · 0 comments
Open

AppWidgetPinnedReceiver not work on Redmi device #457

DawnNguyenAhiho opened this issue Feb 15, 2024 · 0 comments

Comments

@DawnNguyenAhiho
Copy link

DawnNguyenAhiho commented Feb 15, 2024

Hi, I'm having some issue when running your sample code AppWidget on Redmi device. The AppWidgetPinnedReceiver is not work on every Redmi device. After add widget to home screen, there is no Toast shown up (when it should have a Toast with message "Widget pinned. Go to homescreen.". I think the problem is successCallback (at MainActivity, private fun AppWidgetProviderInfo.pin(context: Context)) is not call after requestPinAppWidget is run and pinned successfully.

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

2 participants
@DawnNguyenAhiho and others