tinode / ios

Tinodios: Tinode Messaging Client for iOS
Apache License 2.0
241 stars 104 forks source link

IOS Push Notification Badge only. No Banner #209

Closed jeermainedb closed 9 months ago

jeermainedb commented 10 months ago

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:

  1. Trigger push notif (new message/create new msg)
  2. Receives Badge update ONLY... NO BANNER

Expected behavior Receive both banner notification "new msg" and "badge update"

Screenshots Badge Only IMG_96179D95241F-1

Manual Push Trigger via Firebase Console IMG_69EB3766A68A-1

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):

or-else commented 10 months ago

Can you reproduce the problem with the stock app pointed at sandbox.tinode.co or api.tinode.co?

jeermainedb commented 10 months ago

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.

or-else commented 10 months ago

What do you mean? Are you saying sandbox pushes do not work with a stock app?

jeermainedb commented 10 months ago

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

Screen Shot 2023-11-23 at 4 05 06 PM
Kevdevopsnewbie commented 10 months ago

As I mentioned on the Tinode General group, any changes to the server side configuration do not have any effect on the output.

or-else commented 10 months ago

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:

  1. The new message banner does NOT appear in the stock iOS app which is pointed to sandbox (or api).
  2. The new message banner APPEARS in the stock iOS app which is pointed to sandbox (or api).

Your answer:

jeermainedb commented 10 months ago

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:

  1. The new message banner does NOT appear in the stock iOS app which is pointed to sandbox (or api).
  2. 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.

or-else commented 10 months ago

3alkz3kl2neis

Works for me.

jeermainedb commented 9 months ago

3alkz3kl2neis

Works for me.

Wow. So aside from firebase setup. what should be adjust to the stock app in order for the notification to work on sandbox??