Skip to content

Add Analytics Label Support for FCM Messages in Parse Server Push Adapter #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
josefeliuf opened this issue Feb 27, 2025 · 3 comments
Open
3 tasks done
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:feature

Comments

@josefeliuf
Copy link

New Feature / Enhancement Checklist

Current Limitation

Currently, the Parse Server push adapter does not support adding analytics labels to FCM messages. Without an analytics label, Firebase’s delivery statistics for data messages are limited and cannot be fully filtered or analyzed in the Firebase console.

Feature / Enhancement Description

This feature request proposes adding support for analytics labels in the FCM payload generated by the push adapter. Specifically, the adapter should:

  • Allow developers to include an analytics_label field in their push notification request data.
  • Validate the provided label against the regex pattern ^[a-zA-Z0-9-_.~%]{1,50}$ (ensuring it contains only letters, numbers, and the symbols -_.~% with a maximum length of 50 characters).
  • If valid, inject the label into the outgoing payload under fcm_options.analytics_label.

This change would help align the adapter’s behavior with Firebase’s HTTP v1 API requirements and enable developers to filter and view detailed delivery statistics for their push notifications in the Firebase console.

Example Use Case

  1. A developer wants to monitor push delivery for a new feature update.
  2. They include analytics_label: "feature_update_v1" in the push notification payload.
  3. The push adapter processes the request, validates the label, and adds it under the fcm_options.analytics_label field.
  4. Firebase records and displays delivery statistics for messages with this label, enabling the developer to filter reports and analyze the campaign’s performance.

Alternatives / Workarounds

I haven't found an alternative or workarounds

3rd Party References

Copy link

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza mtrezza added type:feature bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) labels Feb 28, 2025
@josefeliuf
Copy link
Author

@mtrezza I can take this issue, I was waiting for a reply

@mtrezza
Copy link
Member

mtrezza commented Mar 5, 2025

If you don't see any uncertainties, please just go ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:feature
Projects
None yet
Development

No branches or pull requests

2 participants