cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [06/50] [abbrv] ios commit: CB-8474 - Remove local/remote push notification delegates from CDVAppDelegate
Date Thu, 19 Mar 2015 16:55:55 GMT
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/unplug-whitelist
Commit: 962f47cbf050c469372201c42357a3bb938f26ac
Parents: 4d60a63
Author: Shazron Abdullah <shazron@apache.org>
Authored: Thu Mar 12 16:30:34 2015 -0700
Committer: Shazron Abdullah <shazron@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


Mime
View raw message