- In-game notification badges
- In-game text notifications
- Background text notifications (push)
Theymes.enableNotifications() and Theymes.disableNotifications(). In-game text notifications are disabled by default. Typically you enable them when the player is in menus and disable them during gameplay.
In-game notification badges
You can show a badge for:- Unread messages – badge when the player has messages they haven’t read.
- Unanswered messages – badge when the ticket is waiting for the player to reply (even if they read the message).
- Implement the
TheymesDelegateand setTheymes.delegate. UsedidUpdateUnreadMessageCount(_:)and/ordidUpdateUnansweredMessageCount(_:)to react to count changes. - Get the initial count with
Theymes.getUnreadMessageCount()orTheymes.getUnansweredMessageCount(). We recommend setting the delegate first so you don’t miss updates. - Use the count to display a badge in your UI.
- Swift
- Objective-C
In-game text notifications
Theymes uses native iOS notifications to show in-game text notifications. You need to:- Request notification permission from the user.
- Enable notifications with
Theymes.enableNotifications().
UNUserNotificationCenter) or use Theymes’ convenience API: Theymes.requestNotificationPermission().