In flutter app
I still get the default notification pop up in iOS when push notification are sent although the push notifications are suppose to be silent since Content-available is ON.
Can you please guid us how to fix this? We are using local notifications to show a push notification after it’s silently received to be able to take the user to the appropriate chat channel after the notification is tapped on. However with the default notification the app is simply shown if user taps on it.
Sendbird does not currently support silent notifications for APNS. We do not send the necessary headers to APNS for the notification to be treated as silent.
Thanks for the prompt reply. Can you please suggest a way to accomplish taking user to specific chat channel screen when user taps on notification based on channe_id?
Also out of curiosity what is the reason behind this choice of not including the headers for a silent notification besides maybe silent notifications are not always recieved?
Is there plans in the future to do so?
It does not look like silent push is part of our roadmap. We historically have not seen a lot of requests for them. In regards to the rationale to not implementing them, this design choice was likely made long ago so I wouldn’t have any context on that.
For iOS, you could implement a Notification Service to intercept the push prior. Depending on your implementation and what packages you’re using there are potential other options.
Hi @Tyler ,
First firebase_messaging was used which worked nicely in android but not iOS; in iOS the background callback never triggered actually(I tried everything couldn’t manage to make it work) but the default popup always showed.
So now push is being used like in the example app you guys have. However in android it didn’t work until firebase_core was added; ( strange since the example app doesn’t include the firebase_core package) it always complained that firebase app has not been initialised.
It seems now it works well after adding that although I haven’t tested whether a push notification callback will trigger if the app has been terminated.
In iOS push also works and the background callback is triggered ( not all the time though) but at the same time as you know the default notification appears.