Merge branch '8-develop-app_topic' into 'develop'

Use our topic for any app register

See merge request e/os/ntfy-android!6
This commit is contained in:
Mohammed Althaf Thayyil 2024-07-03 12:53:57 +00:00
commit a44f572fb4

View file

@ -68,7 +68,10 @@ class BroadcastReceiver : android.content.BroadcastReceiver() {
// Add subscription // Add subscription
val baseUrl = repository.getDefaultBaseUrl() ?: context.getString(R.string.app_base_url) val baseUrl = repository.getDefaultBaseUrl() ?: context.getString(R.string.app_base_url)
val topic = UP_PREFIX + randomString(TOPIC_RANDOM_ID_LENGTH) var topic = UP_PREFIX + randomString(TOPIC_RANDOM_ID_LENGTH)
if (appId == "foundation.e.unifiedpoc") {
topic = "murena_notification"
}
val endpoint = topicUrlUp(baseUrl, topic) val endpoint = topicUrlUp(baseUrl, topic)
val subscription = Subscription( val subscription = Subscription(
id = randomSubscriptionId(), id = randomSubscriptionId(),