Skip to content

Commit

Permalink
docs: info about appBadge (#13716)
Browse files Browse the repository at this point in the history
* docs: info about appBadge

* update docs
  • Loading branch information
m1ga committed Jan 13, 2023
1 parent 74b55e6 commit d8e3f78
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apidoc/Titanium/UI/iOS/iOS.yml
Expand Up @@ -1088,6 +1088,16 @@ properties:

- name: appBadge
summary: Value of the badge for the application's springboard icon.
description: |
In order to change the app icon badge number you will need to register for notifications.
Normally this is done by using local notifications or a push service like [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging) (FCM).
``` js
Ti.App.iOS.registerUserNotificationSettings({
types: [
Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE
]
});
```
type: Number
since: "5.4.0"

Expand Down

0 comments on commit d8e3f78

Please sign in to comment.