IOS Push Notification Badge only. No Banner
jeermainedb opened this issue · comments
Describe the bug
We are currently testing the push notification feature of IOS. Android works fine. But IOS only received BADGE update.
Tried the manual push notif from Firebase console, both IOS and Android works fine though. Only through tinode that is not working properly.
To Reproduce
Steps to reproduce the behavior:
- Trigger push notif (new message/create new msg)
- Receives Badge update ONLY... NO BANNER
Expected behavior
Receive both banner notification "new msg" and "badge update"
Manual Push Trigger via Firebase Console
Log
didReceiveRemoteNotification { aps = { badge = 1; "content-available" = 1; "interruption-level" = "time-sensitive"; "mutable-content" = 1; sound = default; "thread-id" = usrsSX4cmr4VTE; }; content = "Tinode Notif Trigger LOG"; "gcm.message_id" = 1700637725393264; "google.c.fid" = "dK6niob_-ky-pr9nUSTWoV"; "google.c.sender.id" = 224125586230; rc = "{\"txt\":\"Tinode Notif Trigger LOG\"}"; seq = 217; topic = usrsSX4cmr4VTE; ts = "2023-11-22T07:22:05.171Z"; what = msg; xfrom = usrsSX4cmr4VTE; }
Tinodios (please complete the following information):
- Version 1.2.0 (1727)
- Device iPhoneX and iPhone13
- iOS version 15 and 17Beta
Can you reproduce the problem with the stock app pointed at sandbox.tinode.co or api.tinode.co?
Can you reproduce the problem with the stock app pointed at sandbox.tinode.co or api.tinode.co?
We cant reproduce push notification on sandbox since they have a different config for firebase.
What do you mean? Are you saying sandbox pushes do not work with a stock app?
What do you mean? Are you saying sandbox pushes do not work with a stock app?
yes. tested it on both android and ios. Since firebase handler/account has a different settings from sandbox.
tested on our own server, android works fine. ios, only badge. no banner --- but it receives na notification object based from the logs. its just missing with alert = {body = <string>, title = <string> }
object under aps. that's why only badges are received but no banners.
as referenced here: https://firebase.google.com/docs/cloud-messaging/ios/receive
As I mentioned on the Tinode General group, any changes to the server side configuration do not have any effect on the output.
Are you saying sandbox pushes do not work with a stock app?
yes. tested it on both android and ios.
tested on our own server, android works fine. ios, only badge
I understand something does not work with your server setup. That is not what I'm asking.
Once again, can you reproduce the problem with a stock iOS app pointed at sandbox.tinode.co or api.tinode.co?
Please give direct and clear answer:
- The new message banner does NOT appear in the stock iOS app which is pointed to sandbox (or api).
- The new message banner APPEARS in the stock iOS app which is pointed to sandbox (or api).
Your answer:
Are you saying sandbox pushes do not work with a stock app?
yes. tested it on both android and ios.
tested on our own server, android works fine. ios, only badgeI understand something does not work with your server setup. That is not what I'm asking.
Once again, can you reproduce the problem with a stock iOS app pointed at sandbox.tinode.co or api.tinode.co? Please give direct and clear answer:
- The new message banner does NOT appear in the stock iOS app which is pointed to sandbox (or api).
- The new message banner APPEARS in the stock iOS app which is pointed to sandbox (or api).
Your answer:
No notification/banner/badge pointed on sandbox with the stock iOS app.