quickstart-ios icon indicating copy to clipboard operation
quickstart-ios copied to clipboard

[firebase_messaging] Notification Sound is not working on IOS 15 when app in forground

Open sumitmundra opened this issue 4 years ago • 4 comments

When I send Notification and iOs app is in foreground then notification sound is not working on iOs 15. sound work fine when app in background. it also work fine in iOS 14

apns paylod: userInfo -> [AnyHashable("aps"): { alert = { body = "Kledn Company - hi"; title = Chat; }; badge = 22; category = "https://preprod.risebuildings.com/#/app/resident/messages/chat-details/6131e95a02008ceb91df7f1f"; sound = "default.caf"; }, AnyHashable("gcm.message_id"): 1633432922216200, AnyHashable("categoryId"): , AnyHashable("google.c.a.e"): 1, AnyHashable("notification_category"): , AnyHashable("state_id"): 6131e95a02008ceb91df7f1f, AnyHashable("message"): Kledn Company - hi, AnyHashable("$state"): chat, AnyHashable("badge"): 22, AnyHashable("title"): Chat, AnyHashable("chat_type"): 1, AnyHashable("google.c.fid"): euTqw93Ln0HTny5NGFgUha, AnyHashable("category"): Chat, AnyHashable("google.c.sender.id"): 93576622797, AnyHashable("sound"): default.caf]

sumitmundra avatar Oct 05 '21 11:10 sumitmundra

Hi @sumitmundra, is this the case for plain APNs notifications as well (without using FCM)?

morganchen12 avatar Oct 05 '21 20:10 morganchen12

No it is working fine with plain APNS

sumitmundra avatar Oct 12 '21 04:10 sumitmundra