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:
commit
a44f572fb4
1 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,10 @@ class BroadcastReceiver : android.content.BroadcastReceiver() {
|
|||
|
||||
// Add subscription
|
||||
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 subscription = Subscription(
|
||||
id = randomSubscriptionId(),
|
||||
|
|
Loading…
Reference in a new issue