Topic
  • 2 replies
  • Latest Post - ‏2013-01-29T03:21:57Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts

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

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

    ‏2013-01-28T12:18:08Z  
    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

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

    ‏2013-01-29T03:21:57Z  
    • IdanAdar
    • ‏2013-01-28T12:11:35Z
    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
    Thanks so much! These are what I'm looking for.