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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:13:19+00:00 2026-05-26T21:13:19+00:00

I have one class name as myClassCalculate have the following method – (void) accelerometer:(UIAccelerometer

  • 0

I have one class name as myClassCalculate have the following method

- (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {

NSLog(@"Accelerometer is called");

}

I am making object in

    - (void)applicationDidFinishLaunching:(UIApplication *)application {    


    // Override point for customization after app launch
       myObject = [[myClassCalculate alloc] init];

now when app will go in background, I want this

    - (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {

What can I do, so that this method will get called in app background

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-26T21:13:20+00:00Added an answer on May 26, 2026 at 9:13 pm

    You can’t, only VOIP, audio and navigation apps are allowed to run in background.
    Thus if your app does not fall in one of these it gets suspended and wil not receive any events.

    More about backgrounding: App States and Multitasking

    Declaring Your App’s Supported Background Tasks

    Support for some types of background execution must be declared in
    advance by the app that uses them. An app declares support for a
    service using its Info.plist file. Add the UIBackgroundModes key to
    your Info.plist file and set its value to an array containing one or
    more of the following strings:

    audio — The app plays audible content to the user while in the background. (This content includes streaming audio or video content using AirPlay.)

    location — The app keeps users informed of their location, even while it is running in the background.

    voip — The app provides the ability for the user to make phone calls using an Internet connection.

    newsstand-content — The app is a Newsstand app that downloads and processes magazine or newspaper content in the background.

    external-accessory — The app works with a hardware accessory that needs to deliver updates on a regular schedule.

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

Sidebar

Related Questions

I have one class called Holder (holder.cs) that contain the following: string name; List<String>
I have a simple model like this one: class Artist(models.Model): surname = models.CharField(max_length=200) name
I have two tables, one Company and one Employee: class Company(models.Model): name = models.CharField(max_length=60)
Hi every one I have these classe @Entity @Table(name = login, uniqueConstraints={@UniqueConstraint(columnNames={username_fk})}) public class
I have this: one string variable which holds the class name ( $classname )
Here's my css class: .my-css-class-name { display: block; } And I have one element
Suppose I have one class Person ……… public class Person { public string Name
I have an a windows form application that use one class (its name is
I have an iframe with a class name=blaclass. Inside it, I have one div
I have one class that needs to grab an attribute that is set 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.