Skip to content
Discussion options

You must be logged in to vote

This is probably a mistake in our docs. When a lambda is passed here, it will not pass any arguments and evaluates the Proc in the context of the Noticed::Notification. So this should work instead:

  config.device_tokens = -> { recipient.notification_tokens.where(platform: :fcm).pluck(:token) }

Any places in the docs you found this was wrong? Looks like the FCM docs need updating, but possibly the README as well.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@markburns95
Comment options

@excid3
Comment options

Answer selected by markburns95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants