Przeglądaj źródła

change option push

Marino Faggiana 8 lat temu
rodzic
commit
f1f4edf3cd
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      iOSClient/AppDelegate.m

+ 1 - 1
iOSClient/AppDelegate.m

@@ -426,7 +426,7 @@
 
 
 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
 {
 {
-#if defined(OPTION_NOTIFICATION_PUSH_ENABLE) || defined(DEBUG)
+#if defined(OPTION_NOTIFICATION_PUSH_ENABLE)
     
     
     NSString *pushToken = [[[[deviceToken description] stringByReplacingOccurrencesOfString: @"<" withString: @""] stringByReplacingOccurrencesOfString: @">" withString: @""] stringByReplacingOccurrencesOfString: @" " withString: @""];
     NSString *pushToken = [[[[deviceToken description] stringByReplacingOccurrencesOfString: @"<" withString: @""] stringByReplacingOccurrencesOfString: @">" withString: @""] stringByReplacingOccurrencesOfString: @" " withString: @""];
     NSString *pushTokenHash = [[CCCrypto sharedManager] createSHA512:pushToken];
     NSString *pushTokenHash = [[CCCrypto sharedManager] createSHA512:pushToken];