Giter Club home page Giter Club logo

Comments (7)

surrealroad avatar surrealroad commented on June 29, 2024

My using now https://www.domain.com/safari/index.php/v1/pushPackages

You must be providing a URL in the form https://www.domain.com/v1/pushPackages, if you put the files, including the .htaccess in your root folder https://www.domain.com/ then it should work correctly.

from safari-push-notifications.

Er-Kalpesh avatar Er-Kalpesh commented on June 29, 2024

here whats the meaning of $body = @file_get_contents("php://input"); ?

from safari-push-notifications.

surrealroad avatar surrealroad commented on June 29, 2024

That captures the JSON request from Safari

from safari-push-notifications.

Er-Kalpesh avatar Er-Kalpesh commented on June 29, 2024

Sorry Jack James am not getting application, please can you help me out?

You mention that "You must be providing a URL in the form https://www.domain.com/v1/pushPackages" so which form?

I am direct entering https://www.domain.com/v1/pushPackages url in safari,

now debugging code like:

if ($function == "pushPackages") { //Build and output push package to Safari
    $body = @file_get_contents("php://input");
    $body = json_decode($body, true);
        echo "< pre >---";
        print_r($body);
        exit; 

so here am getting blank array.

so what’s wrong I am doing here?

from safari-push-notifications.

surrealroad avatar surrealroad commented on June 29, 2024

please provide me with a link to your site, and undo any changes to index.php

from safari-push-notifications.

Er-Kalpesh avatar Er-Kalpesh commented on June 29, 2024

Here is the link https://www.domain.com/safari/index.php/

from safari-push-notifications.

surrealroad avatar surrealroad commented on June 29, 2024

As I said before, that URL will not work. Your push service must be the root, https://www.imobdevtech.com not https://www.imobdevtech.com/safari/

from safari-push-notifications.

Related Issues (17)

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.