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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:51:47+00:00 2026-06-13T06:51:47+00:00

I am writing an application using phonegap for iOS. I am trying to show

  • 0

I am writing an application using phonegap for iOS. I am trying to show splash screen when application enters to background.

(void)applicationWillResignActive:(UIApplication *)application […]

In applicationWillResignActive: I am calling a JavaScript function and using cordova’s method cordova.exec(null,null, "SplashScreen, "show", []) to show splash screen. But it seems like, this is not working.

When I resume the app, the application brings the previous state first and then switches to splash screen, but I want to show the splash screen when the app resumes. How can I accomplish that?

  • 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-13T06:51:49+00:00Added an answer on June 13, 2026 at 6:51 am

    Got this working:

    - (void) applicationWillResignActive:(UIApplication *)application {
      //Call to JS to change to splash
     [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.02
    }
    

    Allow the current runloop to run for a brief moment

    For more information on the answer please check the below link:

    The exact moment iOS takes the view snapshot when entering background?

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

Sidebar

Related Questions

I am writing a iphone application using phonegap and ios. I have a weird
I'm writing an application on Android using PhoneGap and i want map to be
I am writing application using PhoneGap on Android. I need to call some PhoneGap
I am writing an application using PhoneGap, and am finding it hard to work
I'm writing an HTML5 mobile application, and using PhoneGap to push it to the
I am writing an application for iPad using phonegap (Simple application using HTML5 and
I'm currently writing an application using Zepto and phonegap, and I need to know
I am writing an application using the crypto++ library. For those not familiar with
I am writing an application using Cairo in C that does the following: Load
I am writing an application using the MVVM pattern. I am providing data to

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.