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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:55:26+00:00 2026-05-29T18:55:26+00:00

I have used push notifications in my app. And I have two questions regarding

  • 0

I have used push notifications in my app. And I have two questions regarding this:

  1. My app does not launches automatically when the phone is in standby mode and it receives push notification.Contradiction is that when the app in standby and in quickly unlock it by swapping it launches the app but when I swap later say after 2-3 min then the app does not launches automatically. How to make it possible to launch every time?

  2. I want to increase the vibration time during push notification. Currently it hardly vibrate for 1 sec.

  • 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-29T18:55:32+00:00Added an answer on May 29, 2026 at 6:55 pm

    1) The concept of asleep/standby is not too tricky; when the user ‘quits’ your application (pressing the home button), your application will either be halted and placed into a frozen state (4.x), or quit entirely (3.x). Nonetheless, you are given the opportunity to do a few cleanup operations before the latter happens with the - (void)applicationWillTerminate:(UIApplication *)application method, and before the former happens with the - (void)applicationDidEnterBackground:(UIApplication *)application method (both are called upon your delegate class). The concept of ‘sleep’ means that in both iPhone OS 3 and iOS 4 you’ll receive the following method when your app loses focus (and also when an SMS comes in, or an alert, etc):

    - (void)applicationWillResignActive:(UIApplication *)application

    Really, most applications (with the exceptions of applications that are designed to work in the background, like voip, audio streaming, etc) simply quit on close. But if you need to, you can also suspend the freezing of your app and ask for more time to complete a task.

    2) You cannot change vibration duration with official APIs.

    You could call AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); multiple times in a loop or using a NSTimer, but that is not recommended. It drains battery and the device could fall off the table. By the way, Apple could reject your app if they consider you don’t use the vibrate properly.

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

Sidebar

Related Questions

I have an app that used to accept push notifications without any issues but
Does linux have commands allow me to push my regularly used commands into a
I have an app that uses push notifications and I am trying to distribute
I have used the push notification in my app and I have used our
I have used the following code to register my app to receive push notification,
I have an iPhone app with push notifications enabled and it's working pretty well.
I have created an app which using APNS. I have got the push notifications
I have used push notification for my project & was working fine with HTTP
I have used this website for testing http://www.webpagetest.org and among some suggestions for optimization
I have used this code (kind of tutorial) at http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5 ... In this code,

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.