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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:08:36+00:00 2026-06-14T15:08:36+00:00

I have enabled the push notification for production in my app id , created

  • 0

I have enabled the push notification for production in my app id , created the provisioning profile using it. When i run the app in my ipad it ask for notifications and i had on the corresponding notification. But the problem is the method

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken {

is not invoking eventhough i had added the following code in the didfinishlaunch

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];

Any idea please help me, i am using ios6 now.

  • 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-14T15:08:36+00:00Added an answer on June 14, 2026 at 3:08 pm

    i just impliment like this way:-

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    
    
    
        [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
    
        [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge)];
    
    }
    - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    
        self.strToken = [[[[deviceToken description]
                           stringByReplacingOccurrencesOfString: @"<" withString: @""] 
                          stringByReplacingOccurrencesOfString: @">" withString: @""] 
                         stringByReplacingOccurrencesOfString: @" " withString: @""];
    }
    
    - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
    
    } 
    
    
    
    
    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {    
        UIApplicationState state = [application applicationState];
        if (state == UIApplicationStateActive) {
            NSString *cancelTitle = @"Close";
            NSString *showTitle = @"Show";
            NSString *message = [[userInfo valueForKey:@"aps"] valueForKey:@"alert"];
            UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"myapp name"
                                                                message:message 
                                                               delegate:self 
                                                      cancelButtonTitle:cancelTitle 
                                                      otherButtonTitles:showTitle, nil];
            [alertView show];
            [alertView release];
    
    
        } else {
            //Do stuff that you would do if the application was not active
        }
    }
    

    UPDATE

    In Device, Go to Settings->Notifications->YourApp->Enable_Notifications

    and

    please check bellow stack-overflow questions might be its helps you

    iOS Registering for Push Notifications within Application

    Delegate for "View" for Push Notification

    Push Notification delegate call backs are not getting called

    Push notification delegate method issue

    push notification : both didFailToRegister and didRegister delegate not calling

    Push Notification Delegates not getting called

    EDIT
    Check in setting is there notification not turn off
    enter image description here

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

Sidebar

Related Questions

In my app, i created a develop provision profile with Push Notification enabled, and
I have push notifications enabled for my app and I detect whether the app
I have an app on Appstore, enabled for push notifications. I revoked and renewed
I have an iPhone app with push notifications enabled and it's working pretty well.
I have an app which was supposed to have push notifications enabled, but for
I have an app that uses push notifications and I am trying to distribute
I have a iphone app which is enable to receive push notifications. Currently i
I have never coded an App with Push Notifications, and I have a very
I have implemented a sample push notification service for my App. Right now I
I have enabled site-wide Django caching , but the third-party apps I am using

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.