You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/03/13 00:30:35 UTC

ios commit: CB-8474 - Remove local/remote push notification delegates from CDVAppDelegate

Repository: cordova-ios
Updated Branches:
  refs/heads/4.0.x 4d60a630a -> 962f47cbf


CB-8474 - Remove local/remote push notification delegates from CDVAppDelegate


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/962f47cb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/962f47cb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/962f47cb

Branch: refs/heads/4.0.x
Commit: 962f47cbf050c469372201c42357a3bb938f26ac
Parents: 4d60a63
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Mar 12 16:30:34 2015 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Mar 12 16:30:34 2015 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVAppDelegate.m | 30 ------------------------------
 1 file changed, 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/962f47cb/CordovaLib/Classes/CDVAppDelegate.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVAppDelegate.m b/CordovaLib/Classes/CDVAppDelegate.m
index d582161..52f5837 100644
--- a/CordovaLib/Classes/CDVAppDelegate.m
+++ b/CordovaLib/Classes/CDVAppDelegate.m
@@ -85,36 +85,6 @@
     return YES;
 }
 
-// repost all remote and local notification using the default NSNotificationCenter so multiple plugins may respond
-- (void)            application:(UIApplication*)application
-    didReceiveLocalNotification:(UILocalNotification*)notification
-{
-    // re-post ( broadcast )
-    [[NSNotificationCenter defaultCenter] postNotificationName:CDVLocalNotification object:notification];
-}
-
-#ifndef DISABLE_PUSH_NOTIFICATIONS
-
-    - (void)                                 application:(UIApplication*)application
-        didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
-    {
-        // re-post ( broadcast )
-        NSString* token = [[[[deviceToken description]
-            stringByReplacingOccurrencesOfString:@"<" withString:@""]
-            stringByReplacingOccurrencesOfString:@">" withString:@""]
-            stringByReplacingOccurrencesOfString:@" " withString:@""];
-
-        [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotification object:token];
-    }
-
-    - (void)                                 application:(UIApplication*)application
-        didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
-    {
-        // re-post ( broadcast )
-        [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotificationError object:error];
-    }
-#endif
-
 - (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
 {
     // iPhone doesn't support upside down by default, while the iPad does.  Override to allow all orientations always, and let the root view controller decide what's allowed (the supported orientations mask gets intersected).


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org