For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

VDaemon's avatar
VDaemon
Icon for Nimbostratus rankNimbostratus
Dec 06, 2019

IRule to display users "the mobile app is outdated. Please update using the links below: Android: Click here, IOS: Click Here"

Dear Community,

Looking for some help.

We have a mobile app whose URL is hosted on F5. I want to write an irule that displays the following message to the users.

"The mobile app is outdated. Please update using the links below:

Android Users: Click here,

IOS Users: Click Here"

 

Ofcouse, the links should take them to the app store's app.

EDIT: I am able to display the JSON message but only needs to know how to display the links to the app stores. 

 

Thank you.

2 Replies

  • Hi,

     

    Not 100% sure, but I think pointing to the application ID in the relevant store should be fine. (e.g. https://play.google.com/store/apps/details?id=ch.admin.meteoswiss&hl=en) ?

     

    Yoann

  • Hi  

    You should have to escape the " characters for that, else you'll see the message content alone.

    The below should help.

    when HTTP_REQUEST {
            if { SOMECONDITION } {
                      HTTP::respond 200 content "<html><head><title>Maintenance Page</title></head><body>The mobile app is outdated. Please update using the links below: Android: Click <a href=\"https://play.google.com/store/\">here</a>, IOS: Click <a href=\"https://play.google.com/store/\">here</a></body></html>"
               }
    }

    Notice - href=\" & \">here, hope this helps. I have tested too.

    Please mark the thread as solved it this solves your requirement.

    Edit: Forgot to tell, there is Ifile method as well. In case you want to explore that.