mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-05 05:41:53 +00:00
Fix Huawei push notifications
This commit is contained in:
@@ -27,7 +27,9 @@ class FirebasePushManager @Inject constructor(
|
||||
|
||||
firebaseInstanceIdJob = getFcmInstanceId { task ->
|
||||
when {
|
||||
task.isSuccessful -> try { task.result?.token?.let { genericPushManager.refresh(it, force).get() } } catch(e: Exception) { Log.e(TAG, "refresh() failed", e) }
|
||||
task.isSuccessful -> try { task.result?.token?.let {
|
||||
genericPushManager.refresh(it, force).get()
|
||||
} } catch(e: Exception) { Log.e(TAG, "refresh() failed", e) }
|
||||
else -> Log.w(TAG, "getFcmInstanceId failed." + task.exception)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user