-
Notifications
You must be signed in to change notification settings - Fork 339
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 deep linking to URLs #619
Comments
Hey @wolak88! Rpush sadly doesn't yet support the current FCM protocol, see also #588. It does support the old, legacy HTTP protocol. You can find the documentation here. In Table 2c on that page you can find the available payloads for web. They are, as of writing:
|
It works with |
Describe the bug
I can't find a way to send appropriate body to fcm push notifications to get linking to particular URL working. I'm missing:
Here is the documentation:
https://firebase.google.com/docs/cloud-messaging/js/receive#setting_notification_options_in_the_send_request
To Reproduce
Create any notification and try to use notification to move to some part of your application.
Expected behavior
After clicking the notification I want to be redirected to particular page.
Logs and other output
ActiveModel::UnknownAttributeError: unknown attribute 'webpush' for Rpush::Client::ActiveRecord::Gcm::Notification.
The text was updated successfully, but these errors were encountered: