mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
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:
committed by
Benoit Marty
parent
e2c9389d36
commit
7498c148f1
+5
@@ -32,6 +32,11 @@ interface PushProvider {
|
||||
*/
|
||||
val name: String
|
||||
|
||||
/**
|
||||
* Return true if the push provider is available on this device.
|
||||
*/
|
||||
fun isAvailable(): Boolean
|
||||
|
||||
fun getDistributors(): List<Distributor>
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user