* Refer to: https://github.com/RocketChat/Rocket.Chat.Android/blob/9e846b7fde8fe0c74b9e0117c37ce49293308db5/app/src/main/java/chat/rocket/android/push/PushManager.kt
* for old source code.
*/
classPushManager@Injectconstructor(
classPushManager@Injectconstructor(
privatevalgroupedPushes:GroupedPush,
privatevalgroupedPushes:GroupedPush,
privatevalmanager:NotificationManager,
privatevalmanager:NotificationManager,
...
@@ -80,7 +77,7 @@ class PushManager @Inject constructor(
...
@@ -80,7 +77,7 @@ class PushManager @Inject constructor(
showNotification(pushMessage)
showNotification(pushMessage)
}catch(ex:Exception){
}catch(ex:Exception){
Timber.d(ex,"Error parsing PUSH message: $data")
Timber.e(ex,"Error parsing PUSH message: $data")
ex.printStackTrace()
ex.printStackTrace()
}
}
}
}
...
@@ -101,7 +98,7 @@ class PushManager @Inject constructor(
...
@@ -101,7 +98,7 @@ class PushManager @Inject constructor(