Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use NotificationHub.start() to register one app with multiple Azure hubs #251

Open
beatsys opened this issue Jan 28, 2022 · 0 comments
Open

Comments

@beatsys
Copy link

beatsys commented Jan 28, 2022

Is it possible to register a single app with multiple Azure hubs ? I'm using Kotlin.
If not any alternative way already in the SDK ?

The NotificationHub.start() method doesn't appear to work if called a second time with the second hub's parameters.

Example code:
val name2 = "SHMNChannel2"
val descriptionText2 = "Notification Channel2"
val importance2 = NotificationManager.IMPORTANCE_DEFAULT
val channel2 = NotificationChannel("NC2", name, importance).apply {
description = descriptionText2
}

        val notificationManager2: NotificationManager =
            getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager

        notificationManager2.createNotificationChannel(channel2)
        NotificationHub.start(this.application, "<HUB-NAME>", "<CONNECTION-STRING>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant