Use our topic for any app register
This commit is contained in:
parent
484c66b0b5
commit
37be787eb8
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