File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
16
16
let pusher = Pusher ( key: " YOUR_PUSHER_APP_KEY " )
17
17
18
18
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.
30
19
let notificationTypes : UIUserNotificationType = [ UIUserNotificationType . Alert, UIUserNotificationType . Badge, UIUserNotificationType . Sound]
31
20
let pushNotificationSettings = UIUserNotificationSettings ( forTypes: notificationTypes, categories: nil )
32
21
application. registerUserNotificationSettings ( pushNotificationSettings)
@@ -69,7 +58,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
69
58
func applicationWillTerminate( application: UIApplication ) {
70
59
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
71
60
}
72
-
73
-
74
61
}
75
-
You can’t perform that action at this time.
0 commit comments