Skip to content

Commit 32fe719

Browse files
committed
Tidied up AppDelegate in iOS Example
1 parent 89cc402 commit 32fe719

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Example/AppDelegate.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1616
let pusher = Pusher(key: "YOUR_PUSHER_APP_KEY")
1717

1818
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
19-
// Override point for customization after application launch.
20-
21-
pusher.connect()
22-
23-
let channel = pusher.subscribe("test-channel")
24-
channel.bind("yolo", callback: { (data : AnyObject?) -> Void in
25-
print(data)
26-
})
27-
28-
29-
// Override point for customization after application launch.
3019
let notificationTypes : UIUserNotificationType = [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound]
3120
let pushNotificationSettings = UIUserNotificationSettings(forTypes: notificationTypes, categories: nil)
3221
application.registerUserNotificationSettings(pushNotificationSettings)
@@ -69,7 +58,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
6958
func applicationWillTerminate(application: UIApplication) {
7059
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
7160
}
72-
73-
7461
}
75-

0 commit comments

Comments
 (0)