Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {

allprojects {
group = "robustrade"
version = "1.14.0"
version = "1.14.2"
}

subprojects {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ import kotlin.coroutines.resume

internal actual class NotificationManager {

private val notificationCenter = UNUserNotificationCenter.currentNotificationCenter().apply {
setDelegate(NotificationDelegate(appNotificationDelegate = delegate()))
}
// The library deliberately does not touch UNUserNotificationCenter.delegate. That property is
// the host app's, it is weak (so anything installed here has to be kept alive), and taking it
// over displaces whatever the app or its SDKs installed — which silently breaks push handling,
// deep links included. The notification below is still delivered to Notification Center; it is
// simply not presented as a banner while the app is in the foreground.
private val notificationCenter = UNUserNotificationCenter.currentNotificationCenter()

actual suspend fun clear() {
notificationCenter.removePendingNotificationRequestsWithIdentifiers(listOf(NOTIFICATION_ID.toString()))
Expand Down