plokko / firebase-php Goto Github PK
View Code? Open in Web Editor NEWPhp integration of Firebase API (FCM Http v1, RealTime database)
Php integration of Firebase API (FCM Http v1, RealTime database)
How do I send a message with more than 2 token values?
Can I send a message with only one token value? I want to send it to several people at once.
plz help me.
Is it possible to include multiple lines or HTML in the content body.
$message->notification
->setTitle('Notification title')
->setBody('firstLine\nSecond Line');
OR
$message->notification
->setTitle('Notification title')
->setBody('firstLine
second Line');
Any insight to the possibilities and limitation would be appreciated. thanks
https://github.com/plokko/firebase-php/blob/master/src/FCM/Message/ApnsConfig.php#L28
This will throw an exception (InvalidArgumentException)
The JSON dictionary object must contain an aps key, the value of which is a dictionary containing data used by the system to deliver the notification.
Hi, I'm trying the apn settings to set the thread-id, since I need notifications to be repeated, or replaced with an existing one
https://stackoverflow.com/questions/49758268/can-you-set-thread-id-with-fcm-nottoos-for-ios
But I can not set this configuration, I'm doing it in the following way
$message->apns->payload->aps->thread_id = "example";
and I do not get an error but it does not work either
Should the following code for the submit method
return ($json && isset($json['message']['name']))?$json['message']['name']:null;
not be
return ($json && isset($json['name']))?$json['name']:null;
As the message object doesn't exist it's just returning null.
composer require plokko\firebase-php gives error:
[InvalidArgumentException]
Could not find a matching version of package plokkofirebase-php. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).
Would be cool if you could update the version on Composer too, the property "mutable content" is still missing there
Hello, how can I create a message that reaches all users in app?, inside FCM console you can use a "condition", wich I see is present in this library, but is seems not no be aplied in "Plokko\Firebase\FCM\Message.php" as a possible Target.
I am trying to use the API to set TTL and priority settings for webpush, but the the API does not support it seems?
Hello,
Thank you for your awesome code, but I have a problem sending this kind of nested array in the data property
$message->data->fill(
[
“type_of_food” => ”vegetable”,
“example” =>
[
0 =>
[
"red" => “carrots”,
"green" => “broccoli”
]
]
]
)
Could you please help..the "example" part still recognized as an array in Flutter code
In case of using CURL with proxy or IP binding, options doesn't pushed to OAuth2 middleware.
If set, custom HTTP client should be posted to CredentialsLoader::makeHttpClient() at src/ServiceAccount.php, line 69
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.