Skip to content

Instantly share code, notes, and snippets.

View NaStillmatic's full-sized avatar
😃

iDeveloper NaStillmatic

😃
View GitHub Profile
@Pamblam
Pamblam / Sending Apple push notifications with APN service and .p8 key .php
Created January 16, 2020 21:45
Sending Apple push notifications with APN service and .p8 key
<?php
// Path to the .p8 file downloaded from apple
// see: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns#2943371
$authKey = "AuthKey_S97G28Y3JP.p8";
// Team ID (From the Membership section of the ios developer website)
// see: https://developer.apple.com/account/
$teamId = 'asdfasdf';