How to implement push notification for iOS 10[Objective C]? : <p>Can anyone help me with implementing push notification for iOS 10 as i have implemented following code but still getting problem in it:</p>

<pre><code>#define SYSTEM_VERSION_GRATERTHAN_OR_EQUALTO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)

if(SYSTEM_VERSION_GRATERTHAN_OR_EQUALTO(@"10.0"))
{
    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
    center.delegate = self;
    [center requestAuthorizationWithOptions:(UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionBadge) completionHandler:^(BOOL granted, NSError * _Nullable error){
        if(!error){
            [[UIApplication sharedApplication] registerForRemoteNotifications];
        }
    }];
}
else {
    // Code for old versions
}
</code></pre>

<p>I am getting error suggesting that </p>

<blockquote>
  <p>Unknown receiver UIUserNotificationCenter</p>
</blockquote>

<p>Thank you in advance!</p>
