firebase / firebase/quickstart-ios
[firebase_messaging] Notification Sound is not working on IOS 15 when app in forground
- Dominant language
- Swift
- Stars
- 3k
- Forks
- 1.5k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 3
Description
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]
Contributor guide
Research direction
Start by reproducing the firebase_messaging notification case on iOS 15 with the app in the foreground, then compare it with iOS 14 and background behavior using the APNs payload shown. Done means the default notification sound plays reliably for foreground notifications on iOS 15.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- firebase, ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100