@livx.cc/native-kit 0.36.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@livx.cc/native-kit",
3
- "version": "0.36.0",
4
- "description": "Isomorphic native-capabilities kit for PWAs \u2014 same API in browser and in an appwrap native shell. Zero dependencies.",
3
+ "version": "0.37.0",
4
+ "description": "Isomorphic native-capabilities kit for PWAs — same API in browser and in an appwrap native shell. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "author": "Elya Livshitz",
7
7
  "homepage": "https://github.com/Livshitz/appwrap#readme",
@@ -24,6 +24,12 @@ export interface ScheduleOptions {
24
24
  * iOS (INImage) and the large icon on Android. Ignored if it can't be loaded.
25
25
  */
26
26
  icon?: string;
27
+ /**
28
+ * App-icon badge count to apply when this notification is DELIVERED (iOS sets the
29
+ * springboard badge on delivery, even while the app is closed). Absent = leave the
30
+ * badge unchanged. Set 0 to clear on delivery.
31
+ */
32
+ badge?: number;
27
33
  }
28
34
 
29
35
  export class NotificationsModule {
@@ -7,6 +7,8 @@ export interface WidgetEntry {
7
7
  sublabel?: string;
8
8
  deepLink?: string;
9
9
  iconUrl?: string;
10
+ /** unread/attention count drawn as a bubble on the tile (icon-grid); absent/0 = no badge. */
11
+ badge?: number;
10
12
  }
11
13
 
12
14
  /** A single big number for the `stat` template. */