title: Apple Notification Device Token change
body: <p>I'm facing an issue after updating my app. I'm getting a device token in this format
  <code>C43461D5-E9CB-4C10-81F8-020327A07A62</code>
  and the notifications aren't working.</p>
  
  <p>Before, I had a notification in this format:
  <code>2add70865401171c7ca1d3b3957b719eaf721fef8f8d7a52bc91ef8a872cc004</code></p>
  
  <p>I did allow notifications for the app and I've not changed anything in the backend. Can anyone guide me why it's not working?</p>
  
  <p>Code in <code>didFinishLaunchingWithOptions</code>:</p>
  
  <pre><code>if ([[[UIDevice currentDevice] systemVersion] floatValue] &gt;= 8.0)
  {
      [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
      [[UIApplication sharedApplication] registerForRemoteNotifications];
  }
  else
  {
      [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
       (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
  }
  </code></pre>
  
  <p>Getting the device token:</p>
  
  <pre><code>NSString *deviceTokenID = [[NSUserDefaults standardUserDefaults] objectForKey:DEVICE_TOKEN_PUSH_NOTI];
  if ([deviceTokenID isEqualToString:@""] || deviceTokenID == nil) {
      NSString *tempApplicationUUID  = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
      [dics setObject:tempApplicationUUID forKey:@"cust_device_id"];
  } else {
      [dics setObject:[[NSUserDefaults standardUserDefaults] objectForKey:DEVICE_TOKEN_PUSH_NOTI] forKey:@"cust_device_id"];
  }
  </code></pre>
  
  <p>I got the below error:</p>
  
  <blockquote>
    <p>Code=3000 "no valid 'aps-environment' entitlement string found for
    application" UserInfo={NSLocalizedDescription=no valid
    'aps-environment' entitlement string found for application}, no valid
    'aps-environment' entitlement string found for application</p>
  </blockquote>