AnsweredAssumed Answered

Script to Detect Devices-iPad Pro

Question asked by mikeo'neil on Dec 4, 2015
Latest reply on Dec 18, 2015 by user14047

Hi Folks,

 

Does anyone have a method that detects the specific Device being used?

 

I am trying to write a script that will detect the device being used to access a database (FMPA 14 & FMP 14 Go). Not hosted on Server. Devices will be MAC Book Pro, Windows 10 Laptop, iPhone 5, 5S, 6, 6Plus, iPad 2, and iPad Pro. I found a response on the forumn that addressed a method but there was no mention for iPad Pro Screen Width.

 

If anyone has a better method that I am attempting please advise.

 

(Partial Script)

If( Get ( Device ) = 1 or Get ( Device ) = 2

//Checks for Mac or Windows

  Perform Script [GOTO Detail]

 

Else If (  Get ( Device ) = 4//iPhone 5 )

  Perform Script [GOTO iPh5 Detail]

 

Else If (  Get ( Device ) = 4 and Get ( ScreenWidth ) = 375)

//iPhone 6

  Perform Script [GOTO iPh6 Detail]

 

Else If ( Get ( Device ) = 4 and Get ( ScreenWidth ) = 414)

//iPhone 6 Plus

  Perform Script [GOTO iPh6Plus Detail]

 

Else If (  Get ( Device ) = 3//iPad )

  Perform Script [GOTO iPad Detail]

 

Else If ( Get(  Device) = 3 and Get(ScreenWidth) = "?????”)

//iPad Pro

  Perform Script [GOTO iPh6Pro Detail]

End If

 

Thanks,

 

Mike

Outcomes