firebase / quickstart-ios

Firebase Quickstart Samples for iOS

Home Page:https://firebase.google.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sumitmundra opened this issue · 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]

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

No it is working fine with plain APNS