Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:15:00+00:00 2026-06-15T12:15:00+00:00

I know there is a possibility to check whether or not the user has

  • 0

I know there is a possibility to check whether or not the user has disabled the push settings, as described in objective c – Detect when user change the app’s notifications settings.

According to the article above, the push notification is sent even if the user has disabled push notifications for the application. As I understand it I should always register for push notifications in applicationDidFinishLaunching:.

Most example looks like this, i.e. the user settings are ignored.

- (void)applicationDidFinishLaunching:(UIApplication *)app {
    // other setup tasks here....

    [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];

}

If the application should take these settings into consideration, how does a correct implementation look like?

The reason why I ask this question is because we have a lot of customers complaining that they are getting push notifications although they have disabled push notifications. This seems to apply to iOS 6.

Should I as a developer take care of the case when the user has disabled push notifications? I have read the documentation over and over again. In particular the documentation for application:didReceiveRemoteNotification:. It does not states if it is called when the user has disabled push notifications.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:15:01+00:00Added an answer on June 15, 2026 at 12:15 pm

    make sure you implement these methods to know whether the device registered or not

    - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)_deviceToken {
            if ([application enabledRemoteNotificationTypes] < 4) {
             NSLog(@"Notifications are disabled for this application");
        return;
            }
          // The device is registered for notifications
    }
    - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error{
        NSLog(@"FAILED TO REGISTER FOR PUSH NOTIFICATIONS");
        NSLog(@"%@", error.userInfo);
    }
    

    it is ok to register for push notifications everytime your app is launched. but you have to make sure you implement the methods above to know if the user has enabled or disabled notifications for the app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a possibility to make the compiler not check functions and methods that
I would know if there is the possibility to create a new Android Activity
Does anybody know how I can programmatically check (using C#) whether my program will
I know there is possibility to merge gridview columns but my requirement is some
is there a possibilty to check whether the iphone is connected via Wlan, via
Well, in SQLLite there is not exist the possibility to delete on cascade, or
Does anybody know if there is a special trick to make gmail not to
Hello stackoverflow community. I want to know, if there is a possibility in OpenJPA
I know there have been many questions on grid and pack in the past
I know there are lots of tools on the net that can make our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.