Skip to content

Instantly share code, notes, and snippets.

View mohamedhafez's full-sized avatar

Mohamed Hafez mohamedhafez

  • Santa Barbara, CA
View GitHub Profile
@mohamedhafez
mohamedhafez / createPushPackage.php
Created November 27, 2021 19:41
Apple Official Push Package Creation Script
<?php
// This script creates a valid push package.
// This script assumes that the website.json file and iconset already exist.
// This script creates a manifest and signature, zips the folder, and returns the push package.
// Use this script as an example to generate a push package dynamically.
$package_version = 2; // Change this to the desired push package version.
@mohamedhafez
mohamedhafez / createPushPackage.php
Last active March 21, 2022 16:24
createPushPackage.php
<?php
// This script creates a valid push package.
// This script assumes that the website.json file and iconset already exist.
// This script creates a manifest and signature, zips the folder, and returns the push package.
// Use this script as an example to generate a push package dynamically.
$package_version = 2; // Change this to the desired push package version.