Skip to content

Instantly share code, notes, and snippets.

View JuanPabloBoero's full-sized avatar

Juan Pablo Boero Alvarez JuanPabloBoero

View GitHub Profile
@JuanPabloBoero
JuanPabloBoero / gist:d96f7358a21ae71b3f11
Last active December 2, 2015 17:30 — forked from fotiDim/gist:d18dd0f0ddb91ee3babc
Using Azure Notification Hubs in Swift
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
let types: UIUserNotificationType = [.Badge, .Alert , .Sound]
var settings: UIUserNotificationSettings = UIUserNotificationSettings( forTypes: types, categories: nil )
application.registerUserNotificationSettings( settings )
application.registerForRemoteNotifications()
return true
}