title: Change Device Push Notification Settings programmatically in iOS
body: <p>I need to change the device push notification settings programmatically. Till now I manage to take user to the setting page and he needs to enable or disable it manually . Is there any way or bunch of codes of enable push notification service?</p>
  
  <p>Here is my code to take user to the push notification settings option</p>
  
  <pre><code> [[UIApplication sharedApplication] registerForRemoteNotificationTypes:  (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
  </code></pre>
  
  <p>But I want to implement the push notification enable programmatically instead of taking user to the settings option.</p>