KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Having a bit of a weird issue... In my AppDelegate.m I have the following: -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO]; // Override point for customization after application launch. // Enable test flight reporting; https://testflightapp.com/sdk/doc/0.8.3/ [TestFlight takeOff:@"myTestFlightToken"]; // Let the device know we want to receive push notifications [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; return YES; } -(void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken { NSString *tokenAsString = [[deviceToken description] stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]]; NSLog(@"Device token: %@", deviceToken); User.currentUserPushNotificationToken = tokenAsString; [TestFlight passCheckpoint: [NSString stringWithFormat: @"Registered for remote notifications %@", deviceToken]]; } -(void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error { NSLog(@"Failed to get token, error: %@", error); [TestFlight passCheckpoint: [NSString stringWithFormat: @"Failed to register for remote notifications %@", error]]; } My team are using Test Flight to distribute ad hoc builds between the developers and stakeholders. When I build the app on my own iPhone 4 the App asks me if I wish to allow push notifications and the app also appears in Settings > Notifications > In Notification Center So far, so good... When I c
Tags (comma-separated)
Save Edits
Cancel