-
Notifications
You must be signed in to change notification settings - Fork 32
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
addTopic in && non only in || #50
Comments
@VanManuel83 - could you elaborate on the request please. I am not fully understanding the request. Provide an example of what you are looking to do. |
Yes... In Data and Notification php file in the getBody function there is this lines of code: `if (!empty($this->topics)) {
As you can see, it is manage only an equal topi, or a query in OR logic operator. |
Thanks for clarifying. Unless I am misunderstanding the request, you can already do this, up to 5 topics per message:
|
Thanks @rolinger , |
@VanManuel83 - I don't understand. Isn't that what you want....to send messages on both Sport AND Food? |
Sorry, no! Make an exampe: Registration form with classic user data and a checkboxes with interesting (Sport, Food, Travel, AI, VR ... ) User A select Sport and Food If i use the code above, Firebase send the notification to user a and the user b, beacuse both are in the topic Sport. I need to send notification only to user a beacuse it had the interesting sport and food. |
Hi @VanManuel83 Is this a feature provided by the Firebase Cloud Messaging system? I can't find any mention of it in google's documentation, like at https://firebase.google.com/docs/cloud-messaging/android/topic-messaging I think PHP-FCM can only really provide a wrapper API for features provided by the underlying FCM system. |
Hi @AndyGaskell , At the bottom, you can find: |
Hi @VanManuel83 Ah, I see it, sorry, I'd not made it that far down the document So, we'd have to add the We could probably work this into Push -> Notification -> getBody but it'd need a few changes, I'll have a think about how we'd implement it php-fcm/src/Push/Notification.php Line 221 in 8b13d1a
|
Is it possibile to implement the feature wich we can control the push condition by ourself.
So we can control the query to select the correct user to sent notification direct, in OR, AND or a both method!
Thanks
The text was updated successfully, but these errors were encountered: