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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:10:38+00:00 2026-05-27T22:10:38+00:00

I have a question to ask about notifications. After some hours to learn how

  • 0

I have a question to ask about notifications. After some hours to learn how to implement push notifications on iPhone, it now arrives!

How do I manage users that click on badge or click view on alert? What happen when users click there?

I tried to send me some notification and the number on the icon of application in springboard increments. In which way clicking there it’s possible to show a uiview to manage the notification arrived and show the message read and unread?

Is there a tutorial for it? I want to save all the messages inside a uitableview.

  • 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-05-27T22:10:39+00:00Added an answer on May 27, 2026 at 10:10 pm

    You want to read Handling Local and Remote Notifications

    Basically in your application delegate, you want to implement:

    - (BOOL)application:(UIApplication *)app didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
    

    and

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

    And process the launchOptions / userInfo for the notification data.

    How I normally process the data is:

    - (BOOL)application:(UIApplication *)app didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        NSDictionary* userInfo =
            [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
        if (userInfo) {
            [self processRemoteNotification:userInfo];
        }
        [window addSubview:viewController.view];
        [window makeKeyAndVisible];
        return YES;
    }
    
    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
        [self processRemoteNotification:userInfo];
    }
    

    The format for userInfo is documented the The Notification Payload section.

    e.g. the “aps” key will give you another NSDictionary, then looking up the “alert” key will give you the alert message that was displayed. Also, any custom data you send in the JSON payload will be in there as well.

    NSDictionary *apsInfo = [userInfo objectForKey:@"aps"];
    
    NSString *alertMsg = @"";
    NSString *badge = @"";
    NSString *sound = @"";
    NSString *custom = @"";
    
    if( [apsInfo objectForKey:@"alert"] != NULL)
    {
        alertMsg = [apsInfo objectForKey:@"alert"]; 
    }
    
    
    if( [apsInfo objectForKey:@"badge"] != NULL)
    {
        badge = [apsInfo objectForKey:@"badge"]; 
    }
    
    
    if( [apsInfo objectForKey:@"sound"] != NULL)
    {
        sound = [apsInfo objectForKey:@"sound"]; 
    }
    
    if( [userInfo objectForKey:@"Custom"] != NULL)
    {
        custom = [userInfo objectForKey:@"Custom"];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to ask a question about Java. I have a user-defined object class,
hihi i have a question that i want to ask about c# and window
Ok, I have a very silly question to ask (which Im rather embaressed about
I have seen stackoverflow ask question page they disable button until my postback event
I have a question that I'm ashamed to ask, but I'm going to have
[i meant to ask this question on StackOverflow...] I have been using VisualSVN Server
I ask this question in anticipation as part of a project. I have experience
I have a model Question with a field called userid , before one ask
This seems like an incredibly dumb question to have to ask, but how do
hallo, I have a common question, I hope it is ok to ask it

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.