Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

replacing deprecated call registerDeviceToken:withExtraInfo:

  • Loading branch information...
commit 638d9bc309236dc02c0e7300f587cba11d38efe1 1 parent b59c73f
@ydogs authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 WhiteHouseApp/WHAppDelegate.m
View
12 WhiteHouseApp/WHAppDelegate.m
@@ -42,6 +42,7 @@
#import "WHVideoViewController.h"
#import "WHRemoteFile.h"
#import "UATagUtils.h"
+#import "UAPush.h"
@interface WHAppDelegate ()
@@ -270,13 +271,12 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio
UATagTypeLanguage |
UATagTypeCountry |
UATagTypeDeviceType)];
- // ... and add some of our own
- NSMutableArray *mutableTags = [baseTags mutableCopy];
- // specify the new version of the app, so we can send appropriate notifications
- [mutableTags addObject:@"app_v2"];
+
+ // and specify the new version of the app, so we can send appropriate notifications
+ NSArray *tags = [baseTags arrayByAddingObject:@"app_v2"];
+ [UAPush shared].tags = tags;
- NSDictionary *info = [NSDictionary dictionaryWithObjectsAndKeys:mutableTags, @"tags", nil];
- [[UAirship shared] registerDeviceToken:deviceToken withExtraInfo:info];
+ [[UAPush shared] registerDeviceToken:deviceToken];
}
Please sign in to comment.
Something went wrong with that request. Please try again.