Giter Site home page Giter Site logo

expo-server-sdk-php's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

expo-server-sdk-php's Issues

error 60: SSL certificate problem: certificate has expired

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 :

  • php 7.4
  • Latest version of your library

I'll provide a PR to fix this.

categoryIdentifier not received

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.

Bad data for ExpoException class constructor

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.