Status Update
Comments
za...@google.com <za...@google.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
sh...@zohocorp.com <sh...@zohocorp.com> #3
yi...@google.com <yi...@google.com> #4
I think the problem might be that you have multiple widget instances and
val glanceId = GlanceAppWidgetManager(context) .getGlanceIds(AgendaGlanceWidget::class.java).last()
might not be the one shown in Assistant. Can you try updating all GlanceIds?
sh...@zohocorp.com <sh...@zohocorp.com> #5
I tried updating all widgets but some times it is working correctly but many times it is not working.
sh...@zohocorp.com <sh...@zohocorp.com> #6
There is no any other solution for this?
sh...@zohocorp.com <sh...@zohocorp.com> #7
CoroutineScope(SupervisorJob() + Dispatchers.Default).launch { val glanceId = GlanceAppWidgetManager(context) .getGlanceIds(AgendaGlanceWidget::class.java).last() updateWidgetStateData(context, glanceId) glanceAppWidget.update(context, glanceId) }
This is how I update widget. Is the scope creating the problem?
sh...@zohocorp.com <sh...@zohocorp.com> #8
These are the methods I am using to update widget. Please check and help
za...@google.com <za...@google.com> #9
Is the coroutine scope code running in a BroadcastReceiver? (like the GlanceAppWidgetProvider?
if so, that could be your problem, the receiver won't keep running after the update returns. if you run the code blocking does it work
sh...@zohocorp.com <sh...@zohocorp.com> #10
The update in the widget works for Google Assistant when we manually add that widget. Suppose we remove the manually added widget the update won't work. Is there a reason for that? I use updateAll method to update the widget
sh...@zohocorp.com <sh...@zohocorp.com> #11
If we manually add one widget using launcher the google assistant widget update working. Any reason?
sh...@zohocorp.com <sh...@zohocorp.com> #12
Any update?
za...@google.com <za...@google.com> #13
sorry this accidentally went to spam. Is this still happening?
sh...@zohocorp.com <sh...@zohocorp.com> #14
Yes. If we manually add one widget using launcher the google assistant widget update working correctly. Any reason?
Description
I am integrating assistant widget provision for our app. I created built in intent for app widget. The app widget is showing in Google assistant but it is not updating when I try to update. Here is the code of updating
val glanceId = GlanceAppWidgetManager(context) .getGlanceIds(AgendaGlanceWidget::class.java).last() glanceAppWidget.update(context, glanceId)
Please help...