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 8505289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:16:34+00:00 2026-06-11T02:16:34+00:00

During the testing of remote push notifications in my App I faced some strange

  • 0

During the testing of remote push notifications in my App I faced some strange behavior:

I keep getting notifications even if I turn off the “notifications enabled” for my application option in settings App. Is that normal? Should my App unsubscribe from getting notifications itself after disabling that option, or it is response of iOS? Or should I do something special when registering for remote notifications? Or maybe its normal for “sandbox” notifications?

Tested on iOS 5.1 on iPhone 4.

  • 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-11T02:16:36+00:00Added an answer on June 11, 2026 at 2:16 am

    The UI for disabling notifications is confusing, I think. Switching ‘Notification Centre’ to OFF is not the same as disabling notifications.

    You all need to deselect the ‘Alert Style’, the ‘Badge App Icon’, ‘Sounds’, and ‘View in Lock Screen – all individually.

    Here’s the code I use to examine the notification settings at run-time:

    UIRemoteNotificationType notificationSelection = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
    
    BOOL sendMessage;
    
    if (notificationSelection == UIRemoteNotificationTypeNone)
    {
        NSLog(@"Push Notifications : DISABLED (%0X)!", notificationSelection);
    
        sendMessage = NO;
    }
    else
    {
        NSLog(@"Push Notifications : ENABLED (%0X) - hurrah! :-)", notificationSelection);
    
        if (notificationSelection & UIRemoteNotificationTypeBadge)
        {
            NSLog (@"Push Notifications : Badge");
        }
    
        if (notificationSelection & UIRemoteNotificationTypeSound)
        {
            NSLog (@"Push Notifications : Sound");
        }
    
        if (notificationSelection & UIRemoteNotificationTypeAlert)
        {
            NSLog (@"Push Notifications : Alert");
        }
    
        if (notificationSelection & UIRemoteNotificationTypeNewsstandContentAvailability)
        {
            NSLog (@"Push Notifications : Newstand Content Availability");
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During the installation of my app, I want to create a PostgreSQL-Database and some
During some of the page transitions (for example during the turn and flow transitions)
During the testing of my app i discovered that it crashed on an iphone
I m using PHP5 & during testing on IE7 if some thing does no
I didn't notice it until today during some testing locally on my pc, that
During testing a weakness was exposed in how our app builds f:selectItems lists, specifically,
I am continually getting the following error during testing: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to
My app has several settings that it would be convenient to manipulate during testing.
I am developing the client side of a client-server app and during testing I
During testing, I'm stuck with testing a piece of code that receives a list

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.