In Maui (Android 34) Widget hosting / configuring does not work in a launcher app owned by me

khatauli 61 Reputation points
2024-08-03T19:18:21.1066667+00:00

I am migrating my Launcher app to Maui (From Xamarin Android).

Things seem to work seemlessly except that Widget hosting seems to be broken.

Debugging revealed that following call does not launche the configuration screen for widget unlike previous versions of Android (33 or lower). Did something change in Android 34 to cause the following call to not work. (I have not changed anything else in the code, so it is a mystery why it does not work as expected)

                    this.StartAppWidgetConfigureActivityForResult(this.MainActivity, widgetId, ActivityFlags., ActivityRequestCodes.CONFIGURE_APPWIDGET, null);

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.