UnifiedPush: FEATURE_BYTES_MESSAGE distributors (#2581)
Only use distributors which are compatible with FEATURE_BYTES_MESSAGE This is because Mastodon sends notifications that are arbritary bytes, not UTF-8. This causes issues in older versions of UnifiedPush distributors and providers that don't support FEATURE_BYTES_MESSAGE
This commit is contained in:
parent
1a5f6486db
commit
cbc5077b1f
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ private suspend fun enableUnifiedPushNotificationsForAccount(context: Context, a
|
||||||
// Already registered, update the subscription to match notification settings
|
// Already registered, update the subscription to match notification settings
|
||||||
updateUnifiedPushSubscription(context, api, accountManager, account)
|
updateUnifiedPushSubscription(context, api, accountManager, account)
|
||||||
} else {
|
} else {
|
||||||
UnifiedPush.registerAppWithDialog(context, account.id.toString())
|
UnifiedPush.registerAppWithDialog(context, account.id.toString(), features = arrayListOf(UnifiedPush.FEATURE_BYTES_MESSAGE))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue