ctwillie / expo-server-sdk-php Goto Github PK
View Code? Open in Web Editor NEWServer-side library for working with Expo using PHP
License: MIT License
Server-side library for working with Expo using PHP
License: MIT License
Currently getting :
GuzzleHttp\Exception\RequestException : cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://exp.host/--/api/v2/push/send
using the basic example from docs, looks like some problem for expo.
using :
I'll provide a PR to fix this.
Is this library still mantained?
https://github.com/expo/expo/issues/13767
I am sending this data via the SDK. I receive everything except for the categoryId as categoryIdentifier. Is there anything that I am doing wrong?
$messages = [
'title' => $notification['title'],
'body' => $notification['body'],
'to' => $notification['device_token'],
'data' => json_decode($notification['json_data'], true),
'categoryId' => $notification['category_identifier'],
];
I even tried sending categoryIdentifier and category_identifier but again was not able to consume it in react native.
When I tried to send more than 100 message in one operation my application raised this exception:
Exception: Wrong parameters for ExpoSDK\Exceptions\ExpoException([string $message [, long $code [, Throwable $previous = NULL]]]) /app/vendor/ctwillie/expo-server-sdk-php/src/ExpoErrorManager.php 59
After more investigation I found out that the problem is due to no error code in the Expo response. Removing the 2nd argument on the line 59, the application now raised a more interesting log:
ExpoException: You can send a maximum of 100 notifications per request (received 115); divide your requests.
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.