Skip to main content
Inspiring
March 29, 2021
Answered

Check if OS is IPhone/iPad?

  • March 29, 2021
  • 1 reply
  • 464 views

Hi,

In Captivate it is possible to check if the learner got a Mobile OS using $$cpInfoMobileOS$$.

But I need to detect if the learner uses either Android or iPhone/iPad. Any clue how I can use something like:

function() { return navigator.userAgent.match(//iPhone|iPad);

/Jacob

 

 

    This topic has been closed for replies.
    Correct answer Lilybiri

    The descriptions are somtimes 'cryptic', reason why I have published that table about variables multiple times. 

    1 reply

    Lilybiri
    Legend
    March 29, 2021

    The system variable cpInfoMobileOS has the value 1 for iOS and 2 for Android? What is missing?

    Download the free table in this blog:

    http://blog.lilybiri.com/discover-slash-use-captivates-system-variables-part-1

     

    Inspiring
    March 29, 2021

    Nothing is missing 😉

     

    Forgot the description that only appears when you enter it from the top menu. And the explanation just said it could check if it is mobile og NOT mobile.

    /Jacob

     

     

     

    Lilybiri
    LilybiriCorrect answer
    Legend
    March 29, 2021

    The descriptions are somtimes 'cryptic', reason why I have published that table about variables multiple times.