Skip to content

Instantly share code, notes, and snippets.

Avatar

Valerio Ferrucci valfer

View GitHub Profile
@valfer
valfer / sendPush.txt
Last active Oct 12, 2020
Sending Push Notification with HTTP2 (and PHP) see entire post at: http://coding.tabasoft.it/ios/sending-push-notification-with-http2-and-php/
View sendPush.txt
<?php
/**
* @param $http2ch the curl connection
* @param $http2_server the Apple server url
* @param $apple_cert the path to the certificate
* @param $app_bundle_id the app bundle id
* @param $message the payload to send (JSON)
* @param $token the token of the device
* @return mixed the status code (see https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html#//apple_ref/doc/uid/TP40008194-CH101-SW18)
@valfer
valfer / CrashCompilerClass.swift
Created Oct 14, 2014
This class causes a compiler crash with signal 11, tested with XCode 6.0.1 (6A317) and XCode 6.1 (6A1046a)
View CrashCompilerClass.swift
//
// CrashCompilerClass.swift
// CompilerCrash
//
// Created by Valerio Ferrucci on 14/10/14.
// Copyright (c) 2014 Valerio Ferrucci. All rights reserved.
//
import Foundation
You can’t perform that action at this time.