firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

[FR] Add subtitle for iOS push notifications

Open daxaxelrod opened this issue 2 years ago • 5 comments

Describe your environment Messaging/Notifications Describe the problem We cannot send push notifications with subtitle for iOS due to ApsAlert struct lacking a subtitle field.

FCM API and the APNS itself do support this field on iOS 9+ (and it's safely ignored on older versions).

daxaxelrod avatar Jun 16 '23 23:06 daxaxelrod

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Jun 16 '23 23:06 google-oss-bot

Hi @daxaxelrod this is the Firebase Admin Node.js repo. Do you need this feature supported in the Go SDK?

Hey, @chong-shao WDYT?

lahirumaramba avatar Jul 24 '23 20:07 lahirumaramba

Hey @lahirumaramba Yes looking to get this added for the node sdk

daxaxelrod avatar Jul 24 '23 20:07 daxaxelrod

I misread your comment, apologies. It looks like the subtitle field is available in the Node.js SDK. See https://firebase.google.com/docs/reference/admin/node/firebase-admin.messaging.apsalert.md#apsalertsubtitle

Does that help?

lahirumaramba avatar Jul 24 '23 20:07 lahirumaramba

No problem! I've tried that (at least on v11.9.0) and it wasn't working for me. Am only able to get the title and body to work

daxaxelrod avatar Jul 24 '23 21:07 daxaxelrod