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

  • Home
  • SEARCH
  • 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 9102051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:17:07+00:00 2026-06-17T01:17:07+00:00

I have got push notification working and managed to update icon badge count when

  • 0

I have got push notification working and managed to update icon badge count when app is brought to foreground.

I am a bit confused about this though… the iPhone receives the notification and the pop up message appears to activate my app, and the badge only updates after me starting the app.

This does not sound right in terms of user experience. My understanding is that the badge count should notify the user of what needs action, through incremented count, but this does not happen until a later stage when the app is live.

So is there a way to tell the app to update its badge count when it receives push notifications and whilst being in the background?

Note that my app does not use location and that I have UIRemoteNotificationTypeBadge in the notification registration request.

  • 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-17T01:17:08+00:00Added an answer on June 17, 2026 at 1:17 am

    Since push notification are handled by iOS and not your app you can’t change the application badge on receiving a push notification.

    But you can send the badge number in the payload of the push notification, but the you will have to do the calculation server side.

    You should read Local and Push Notification Programming Guide and especially the The Notification Payload.

    The payload could look like this:

    {
        "aps" : {
            "alert" : "You got your emails.",
            "badge" : 9
        }
    }
    

    Now the app application badge icon will show 9.

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

Sidebar

Related Questions

I have got push notification working but the next thing I want to do
I have used the following code to register my app to receive push notification,
I have got a wireshark trace of an apple push notification. But i only
I've got an iPhone app that I'm working on that uses Push Notifications. In
I was trying to use GCM to have push-notification in my app. I called
I've finally got push notifications working from UrbanAirship. But now I have a problem,
I have created an app which using APNS. I have got the push notifications
I have got trouble when i send push notification to phone it returns with
I have completed client side code by download sample from git for push notification
I'm thinking of developing an app that uses Microsoft Push Notification. However, I'm not

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.