Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@valfer
valfer / CrashCompilerClass.swift
Created October 14, 2014 09:03
This class causes a compiler crash with signal 11, tested with XCode 6.0.1 (6A317) and XCode 6.1 (6A1046a)
//
// CrashCompilerClass.swift
// CompilerCrash
//
// Created by Valerio Ferrucci on 14/10/14.
// Copyright (c) 2014 Valerio Ferrucci. All rights reserved.
//
import Foundation
@valfer
valfer / sendPush.txt
Last active April 3, 2024 20:46
Sending Push Notification with HTTP2 (and PHP) see entire post at: http://coding.tabasoft.it/ios/sending-push-notification-with-http2-and-php/
<?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)