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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:49:27+00:00 2026-05-24T13:49:27+00:00

Push notification runs this on ApplePushNotificationAppDelegate.m. – (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { for (id

  • 0

Push notification runs this on ApplePushNotificationAppDelegate.m.

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

for (id key in userInfo) {
    NSLog(@"key: %@, value: %@", key, [userInfo objectForKey:key]);
}

ApplePushNotificationViewController *apns = [ApplePushNotificationViewController alloc];
NSLog(@"%@ changed", [apns labelchange]);
}

It goes to ApplePushNotificationViewController.m and does this

-(NSString *)labelchange{
label2.text = @"labelchanged";
return @"hi";
}

and the result in the console is this without changing the label on my iPhone

2011-08-03 18:20:56.501 ApplePushNotification[1473:707] key: acme1, value: bar
2011-08-03 18:20:56.503 ApplePushNotification[1473:707] key: acme2, value: 42
2011-08-03 18:20:56.505 ApplePushNotification[1473:707] hi changed
2011-08-03 18:21:04.347 ApplePushNotification[1473:707] key: aps, value: {
    alert = "You got a new denyapps!";
    badge = 5;
    sound = "beep.wav";
}

How come my program runs the program but does not change the label2.text to “labelchanged”?

Need to get certificate to use the push service but here are the links for the projects, “PushMeBaby” is the server.

http://dl.dropbox.com/u/12439052/ApplePushNotification.zip
http://dl.dropbox.com/u/12439052/PushMeBaby.zip

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-05-24T13:49:28+00:00Added an answer on May 24, 2026 at 1:49 pm

    ApplePushNotificationAppDelegate.h

    #import <UIKit/UIKit.h>
    
    @class ApplePushNotificationViewController;
    @interface ApplePushNotificationAppDelegate : UIViewController {
    UIWindow *window;
    ApplePushNotificationViewController *viewController;
    }
    
    @property (nonatomic, assign) id <View1Delegate> delegate;
    @property (nonatomic, retain) IBOutlet UIWindow *window;
    @property (nonatomic, retain) IBOutlet UILabel *label;
    @property (nonatomic, retain) IBOutlet ApplePushNotificationViewController *viewController;
    
    @end
    

    ApplePushNotificationAppDelegate.m

    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
            viewController.label2.text = @"changetext";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement push notification in j2me application. In this the want to
I am developing an application in which I want to use push notification service.
I have implemented whole push notification service for my application using easyapns . I
I want to register my app for push notification when my application terminates so
Is there a way to catch remote push notification while the application is running
I am implementing a push notification in my application. Server: php Client: iphone Sever
in apple push notification service, i'm getting badge 50 for my application. but i
I am implementing C2DM for push notification in an android application, it need at
I am creating an application with push notification alerts using Google C2DM service. Can
I was developing an application with push notification enabled. It is working perfectly in

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.