Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2013-01-29T03:21:57Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic How to reload WL appplication from applicationWillEnterForeground of iOS?

‏2013-01-28T04:07:59Z |
Hi,

Anybody know how to How to call reload WL appplication from applicationWillEnterForeground in iOS?

Wl support WL.Client.reloadApp, but I don't know how to call it from "applicationWillEnterForeground" of iOS

Thanks,
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: How to reload WL appplication from applicationWillEnterForeground of iOS?

    ‏2013-01-28T12:18:08Z  in response to SystemAdmin
    I am not exactly sure what it is you are doing, or how (is this purely Hybrid? Native? Combined?),
    but there is the following API, with it you can define what to do when the app returns to the foreground.

    http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m5/topic/com.ibm.worklight.help.doc/apiref/r_wl_app_backgroundhandler_setOnAppEnteringForeground.html

    For Native, we do not supply such functionality (WL.Client.reloadApp).

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to reload WL appplication from applicationWillEnterForeground of iOS?

      ‏2013-01-29T03:21:57Z  in response to IdanAdar
      Thanks so much! These are what I'm looking for.