In our case, registration happens when a push notification is received (data-only push and PushKit). As soon as registration is successful, ATS initiates a call. If the call ends, the user is automatically unregistered.
The implementation on iOS works well. The app launches together with PushKit, which allows me to track whether the user answered the call or not. Problems occur only on Android. I hope for your help in that problem.
Most of the issues are related to the fact that when a push is received on Android, the main application is not actually launched — only the Firebase isolate is started. Because of this, I cannot track events such as onTerminated.
Problems I’ve encountered:
-
When receiving a push via Firebase, I perform registration, but the issue is that if the user presses “reject,” I have no way to unregister, so that the account can be registered again on the next call. I see that during Siprix initialization it is possible to set unregOnDestroy, but it seems that unregistration only happens when the app itself is closed, and at the moment of receiving the push the app is not even running. Is there any way to unregister when the user declines the call? Or perhaps to force the main app to launch when a push is received?
-
Since I receive registration information only from push notifications, it is crucial that the push is always delivered. There are no issues on iOS — PushKit is always triggered. However, on Android, the push is delivered only in the background. If the app is open, I don’t receive the push. Is there any way to fix this?
3.This is not critical, but as I understand it, there is no difference between tapping on the push notification and pressing the “answer” button — in both cases, the app simply opens.
In our case, registration happens when a push notification is received (data-only push and PushKit). As soon as registration is successful, ATS initiates a call. If the call ends, the user is automatically unregistered.
The implementation on iOS works well. The app launches together with PushKit, which allows me to track whether the user answered the call or not. Problems occur only on Android. I hope for your help in that problem.
Most of the issues are related to the fact that when a push is received on Android, the main application is not actually launched — only the Firebase isolate is started. Because of this, I cannot track events such as onTerminated.
Problems I’ve encountered:
When receiving a push via Firebase, I perform registration, but the issue is that if the user presses “reject,” I have no way to unregister, so that the account can be registered again on the next call. I see that during Siprix initialization it is possible to set unregOnDestroy, but it seems that unregistration only happens when the app itself is closed, and at the moment of receiving the push the app is not even running. Is there any way to unregister when the user declines the call? Or perhaps to force the main app to launch when a push is received?
Since I receive registration information only from push notifications, it is crucial that the push is always delivered. There are no issues on iOS — PushKit is always triggered. However, on Android, the push is delivered only in the background. If the app is open, I don’t receive the push. Is there any way to fix this?
3.This is not critical, but as I understand it, there is no difference between tapping on the push notification and pressing the “answer” button — in both cases, the app simply opens.