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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:29:00+00:00 2026-06-11T03:29:00+00:00

I have an iOS application and I am doing in this way: in the

  • 0

I have an iOS application and I am doing in this way: in the app delegate I call a method:

- (void)applicationWillResignActive:(UIApplication *)application
{
   [self performSelector:@selector(myFunction) withObject:self afterDelay:0.0];
   .... 
}

The problem is, when I implement the inAppPurchase in one of my controllers and when the user confirms the payment or cancels it, the: - (void)applicationWillResignActive:(UIApplication *)application is invoked and myFunction is called. I would like to not invoke myFunction when the user accepts or cancels the payment, rather invoke it when the user lunches the app.

How i can do this ? 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-11T03:29:01+00:00Added an answer on June 11, 2026 at 3:29 am

    The reason why your application’s applicationWillResignActive is because of the blue popup that shows on the screen. This popup does not belong to your application. So, the logic to call your applicationWillResignActive method will have to change.

    Keep in mind that applicationWillResignActive is a method that is called by many simple OS interaction, including taking a look at the notificationCenter or the multitasking bar. If that method should not be called during these interactions, you might want to have a whitelist logic to call the method so you only call it when it needs to be called, and not just specific to in-app purchase.

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

Sidebar

Related Questions

When I get this: - (void)applicationWillResignActive:(UIApplication *)application { I release all my objects and
I have the following test case in my iOS application : -(void) testTwoDefaultUsersExist {
So I have been doing a lot of reading about the way iOS handles
I have an audio app that is having some problems with the way iOS
I have an iOS application (but this is just as applicable to an OS
I have application made for iOS 4.2 and I was doing development in XCode
i have ios application with xcdatamodeld, i want update some data so need a
I have ios application with datetimepicker, and i am store the date in to
i have an iOS application witch uses the current location of the user. I
I have an iOS application with several controllers, each with their own xib files.

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.