Skip to content

Commit

Permalink
[tidev#3595 state:fixed-in-qa] Conditionalize push notification code …
Browse files Browse the repository at this point in the history
…upon USE_TI_NETWORKREGISTERFORPUSHNOTIFICATIONS
  • Loading branch information
rseagraves authored and Blain Hamon committed Apr 15, 2011
1 parent 7b27c8d commit 4a46883
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iphone/Classes/NetworkModule.m
Expand Up @@ -287,6 +287,8 @@ -(void)unregisterForPushNotifications:(id)args

#pragma mark Push Notification Delegates

#ifdef USE_TI_NETWORKREGISTERFORPUSHNOTIFICATIONS

-(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
// called by TiApp
Expand Down Expand Up @@ -320,6 +322,8 @@ - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotif
}
}

#endif

@end


Expand Down
4 changes: 4 additions & 0 deletions iphone/Classes/TiApp.mm
Expand Up @@ -511,6 +511,8 @@ -(id)remoteNotification

#pragma mark Push Notification Delegates

#ifdef USE_TI_NETWORKREGISTERFORPUSHNOTIFICATIONS

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
// NOTE: this is called when the app is *running* after receiving a push notification
Expand Down Expand Up @@ -559,6 +561,8 @@ - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotif
}
}

#endif

//TODO: this should be compiled out in production mode
-(void)showModalError:(NSString*)message
{
Expand Down

0 comments on commit 4a46883

Please sign in to comment.