Assigned
Status Update
Comments
bp...@atlassian.com <bp...@atlassian.com> #2
Hello,
I'm only a little familiar with Power Apps. Is your app a mobile app or a web app?
This link
The primary
If your app does not work on Android mobile devices, you can also consider the
Description
Component used: glance Version used: 1.1.1 Devices/Android versions reproduced on: All
We're planning on using glance widgets for an upcoming feature. We plan to use this by utilizing
PreferencesGlanceStateDefinition
to store some configuration data (ids to load data from the app, user preferences etc). We've thought about storing this in the app and referencing it by a UUID we stick in the widget store, but we'd have the same problem.A simplified version of our widget is
This works great in practice, the widget updates quickly without any flashing and we can support multiple widgets with different data.
Where we run into a problem is when using
requestPinGlanceAppWidget
. I can easily provide an instance of the widget usingpreferencesOf(key to value)
for the composable inprovideContent
but the call togetAppWidgetState
will bomb since a real widget isn’t created yet, which results in null values.Would it be possible (or am I missing something obvious) to pass
initialState
toprovideGlance
?