Skip to content
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

FCM support add extra options #2982

Merged
merged 2 commits into from
Mar 10, 2023
Merged

FCM support add extra options #2982

merged 2 commits into from
Mar 10, 2023

Conversation

tienthanh2509
Copy link
Contributor

@tienthanh2509 tienthanh2509 commented Mar 9, 2023

What change does this PR introduce?

Support adding additional options for FCM message

Why was this change needed?

Closes #2233, #2965

Other information (Screenshots)

Copy link
Contributor

@p-fernandez p-fernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌟

@p-fernandez
Copy link
Contributor

@tienthanh2509 I just noticed the issue you are trying to close was assigned to a different contributor. The PR was added here: #2979
But I noticed you added a small thing extra, the APNS headers. I will try to merge the other PR so you can modify this PR from next branch and just add that change.
Thank you for your contribution.

@p-fernandez p-fernandez self-requested a review March 9, 2023 09:39
@p-fernandez
Copy link
Contributor

@tienthanh2509 PR was merged. You can edit this PR based on latest next version. Thank you.

@tienthanh2509
Copy link
Contributor Author

Hi @p-fernandez
I updated the interface, the extra option is now under fcm fields.'
Please help to review
Thanks

POST /api/v1/events/trigger HTTP/1.1
Content-Type: application/json
Authorization: ApiKey redacted
Host: 192.168.128.62:3080
Content-Length: 792

{
	"name": "some-template",
	"to": {
		"subscriberId": "redacted"
	},
	"payload": {
		"action_type": "some data"
	},
	"overrides": {
		"fcm": {
			"type": "data",
			"android": {
				"data": {
					...
				},
				"priority": "high"
			},
			"apns": {
				"headers": {
					"apns-priority": "5"
				},
				"payload": {
					...
				}
			}
		}
	}
}

- iOS with headers
- Android with priority
- Add test cases for FCM provider
Copy link
Contributor Author

@tienthanh2509 tienthanh2509 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR was cleaned up due to duplicate #2979
Only additional fields was added

Copy link
Contributor

@p-fernandez p-fernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.
🌟

@p-fernandez p-fernandez added this pull request to the merge queue Mar 10, 2023
Merged via the queue into novuhq:next with commit fe29c63 Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀/🐛 Feature/Bug: No possibility of sending FCM data payload
2 participants