Giter Site home page Giter Site logo

safari-push-notifications's People

Contributors

connorlacombe avatar surrealroad avatar

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

safari-push-notifications's Issues

How to use it?

Hello,

I need help here
1)how to create pushpackage? what will be the URL to create push package?
i am using https://www.domain.com/safari/index.php/pushPackages
and changed code and set $function = $path[2];
but here whats the $version = $path[0] ?
$body = json_decode($body, true); is empty
$userid = $body["id"]; is empty too
2)how to use log?

No notifications appear

I'm having an issue that I can't track down.
What's working:
Safari correctly prompts to enable notifications from the host site
The push service correctly logs the device id to mysql, and removes it as needed
So arguably the trickiest part is all ok.
I've checked that your own test site is working for me perfectly.

I've modified your code to push data to all devices, rather than by id. Again this seems to be ok.
Triggering a push notification however is not working.
I've verified that the server is able to talk to the APNS server with
openssl s_client -connect gateway.push.apple.com:2195 -CAfile apns-cert.pem
No errors are returned by stream_socket_client
I've dumped the output of the json data sent, and it looks ok:

"{"aps":{"alert":{"title":"Test notification","body":"This is a test push notification","action":"View"},"url-args":[""]}}"

Not sure what else to check

No Push Notification

I'm prompted to opt in on push messages.
In mysql the id = 0 but the device id looks OK

When i try to send push message no message arrives to my mac.

I suspect this has to do with certificates. My website is on a hosted server at domeneshop.no

trying to connect in terminal:
openssl s_client -connect gateway.push.apple.com:2195 -cert apns-cert.pem -debug -showcerts -CAfile priv.p12
------Snip------
depth=1 /C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C
verify error:num=20:unable to get local issuer certificate
verify return:0

------Snip------

Server certificate
subject=/C=US/ST=California/L=Cupertino/O=Apple Inc./OU=iTMS Engineering/CN=gateway.push.apple.com

issuer=/C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C

No client certificate CA names sent

SSL handshake has read 2723 bytes and written 2320 bytes

New, TLSv1/SSLv3, Cipher is AES256-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1
Cipher : AES256-SHA
Session-ID:
Session-ID-ctx:
Master-Key: *_Removed by me_
Key-Arg : None
Start Time: 1383316814
Timeout : 300 (sec)

Verify return code: 0 (ok)

function throws error

The function apache_request_headers() throws an error (function already exists), but the script works if I comment it out

Signature verification of push package failed

I run the code and get the error "Signature verification of push package failed"
I refer to the issues saying "Signature verification of push package failed" but it is not helping me
Can you tell me why I am getting the above error and how to fix it

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.