Push notification will not show at the beginning when the device is restarted
When the device is restarted, there will be for sure no Jami running in the background.
At this time, when a push notification is received, Jami will wake up from the debugging log and messages, calls will be received and handled correctly.
But, there will be no system notification being showed unless the contact keeps sending or calling (until bootstrapDaemon
is called again).
Current speculations:
- When the client is started normally, the
ConversationFacade
instance will be created which is in charge of notifications' build.
2021-08-23 12:22:52.434 17572-17572/cx.ring D/DERP: init conv facade
java.lang.RuntimeException
at net.jami.services.ConversationFacade.<init>(ConversationFacade.kt:631)
at cx.ring.dependencyinjection.ServiceInjectionModule.provideConversationFacade(ServiceInjectionModule.kt:140)
at cx.ring.dependencyinjection.ServiceInjectionModule_ProvideConversationFacadeFactory.provideConversationFacade(ServiceInjectionModule_ProvideConversationFacadeFactory.java:78)
at cx.ring.application.DaggerJamiApplicationFirebase_HiltComponents_SingletonC.conversationFacade(DaggerJamiApplicationFirebase_HiltComponents_SingletonC.java:285)
at cx.ring.application.DaggerJamiApplicationFirebase_HiltComponents_SingletonC.access$3800(DaggerJamiApplicationFirebase_HiltComponents_SingletonC.java:200)
at cx.ring.application.DaggerJamiApplicationFirebase_HiltComponents_SingletonC$SwitchingProvider.get(DaggerJamiApplicationFirebase_HiltComponents_SingletonC.java:1569)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at cx.ring.application.DaggerJamiApplicationFirebase_HiltComponents_SingletonC$ActivityCImpl.injectHomeActivity2(DaggerJamiApplicationFirebase_HiltComponents_SingletonC.java:1339)
at cx.ring.application.DaggerJamiApplicationFirebase_HiltComponents_SingletonC$ActivityCImpl.injectHomeActivity(DaggerJamiApplicationFirebase_HiltComponents_SingletonC.java:1242)
at cx.ring.client.Hilt_HomeActivity.inject(Hilt_HomeActivity.java:67)
at cx.ring.client.Hilt_HomeActivity$1.onContextAvailable(Hilt_HomeActivity.java:38)
at androidx.activity.contextaware.ContextAwareHelper.dispatchOnContextAvailable(ContextAwareHelper.java:99)
at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:322)
at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:273)
at cx.ring.client.HomeActivity.onCreate(HomeActivity.kt:132)
at android.app.Activity.performCreate(Activity.java:7183)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
- When the application wakes up by push notification, no instance of
ConversationFacade
will be created. Therefore, there will be no subscription to create notifications on the representation level.
Edited by Ming Rui Zhang