Skip to content

Commit cdd7ffa

Browse files
committed
fix: use BOOT_COMPLETED & MY_PACKAGE_REPLACED to ensure widgets sync
1 parent 094e8aa commit cdd7ffa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/commands/widget.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,9 +1258,15 @@ ${EOL}`;
12581258
<receiver
12591259
android:name="${packageName}.${widgetClassName}"
12601260
android:exported="true">
1261+
<intent-filter>
1262+
<action android:name="android.intent.action.BOOT_COMPLETED" />
1263+
</intent-filter>
12611264
<intent-filter>
12621265
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
12631266
</intent-filter>
1267+
<intent-filter>
1268+
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
1269+
</intent-filter>
12641270
<meta-data
12651271
android:name="android.appwidget.provider"
12661272
android:resource="@xml/ns_${name}_widget_info" />

0 commit comments

Comments
 (0)