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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:56:42+00:00 2026-06-03T07:56:42+00:00

I have used Push notification in my application, when the notification arrives i will

  • 0

I have used Push notification in my application, when the notification arrives i will get some values in the payload and i need to update the values in my application. I have amount label in all the views, so i need to update the amount after receiving the notification. But the problem is, the value doesn’t update instantly, when i navigate to any view after that it will update. I want to update the value instantly, so how can i do that?

-(void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{

            NSString *getAmt =[[userInfo valueForKey:@"aps"] valueForKey:@"Amount"];
            float totalAmt = [getAmt floatValue] + [amt floatValue];
            NSString *finalAmount = [NSString stringWithFormat:@"%.02f",totalAmt];
            [[NSUserDefaults standardUserDefaults] setObject:finalAmount forKey:@"amount"];
            [self.viewController.view setNeedsDisplay];
}

I am using the Nsuserdefault value for displaying the amount in the amount label. Now the values are changed, when i am navigates to any view after that it will update. But i want to update the value instantly in my application, after getting the notification. So please help me out.

Thanks!

  • 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-03T07:56:43+00:00Added an answer on June 3, 2026 at 7:56 am

    use NSNotication and add a notification against a method of class where method is implemented, when you receive push notification, post that notification and in method update values

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

Sidebar

Related Questions

I want to create an application with apple push notification services. I have used
I have used push notification for my project & was working fine with HTTP
I have created a .pem file to be used for Production push notification, and
In my application i have used the UiViewController and able to push the other
In my application i used Urban Airship for push Notification, But Urban Airship push
I have used the following code to register my app to receive push notification,
I have a problem with distribution certificate of push notification. First I used developer
I have used the push notification in my app and I have used our
I have been trying to set up a program that sends a push notification
I have used push notifications in my app. And I have two questions regarding

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.