safari-push-notifications

Safari push notification (OS X Mavericks and Safari 7)

断了今生、忘了曾经 提交于 2020-01-06 14:00:11
问题 I have created the push package with valid certificate and hosted on server with valid SSL certificate but problem is that javascript always shows the denied message even before prompting to user. I am using the java script code from apple tutorial with valid website push id & webservice url etc document.body.onload = function() { // Ensure that the user can receive Safari Push Notifications. if ('safari' in window && 'pushNotification' in window.safari) { var permissionData = window.safari

Apple website push: Signature verification of push package failed, but apple certificates are ok

假装没事ソ 提交于 2019-12-12 14:08:13
问题 I'm trying to implement Web push notifications to Safari using Codeigniter, I'm following the Apple Guide and I created a library to create a Push Package based in this connorlacombe github project. This is my library: <?php if ( ! defined('BASEPATH')) exit("No direct script access allowed");class Apple_utils { var $certificate_path; var $certificate_password; var $dir; var $raw_files = array( "icon.iconset/icon_16x16.png", "icon.iconset/icon_16x16@2x.png", "icon.iconset/icon_32x32.png",