Ensure that a PushProvider is available on a device before using it.

It help to fallback to UnifiedPush (if available) if the PlayServices are not installed on the device.
This commit is contained in:
Benoit Marty 2024-01-17 16:07:26 +01:00 committed by Benoit Marty
parent e2c9389d36
commit 7498c148f1
5 changed files with 45 additions and 1 deletions

View file

@ -24,6 +24,10 @@ interface PushService {
// TODO Move away
fun notificationStyleChanged()
/**
* Return the list of push providers, available at compile time, and
* available at runtime, sorted by index.
*/
fun getAvailablePushProviders(): List<PushProvider>
/**