ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Detect mobile device

jgabriel
13-Aquamarine

Detect mobile device

Is there any way to detect from TW global js, if the mashup is loaded from mobile device? I would like adjust widgets I made to fit on mobile based on this option, probably can be done by measuring viewport in jQuery, but is there any internal variable I can access?

Regards Jan.

ACCEPTED SOLUTION

Accepted Solutions
BrunoD
12-Amethyst
(To:jgabriel)

Hello Jan,

In order to set the viewport parameter for rendering mashups on mobile displays, you need to use an extension.

Please follow this link to find an exemple of extension adding viewport parameter:

MobileHeader Extension

Bruno

View solution in original post

2 REPLIES 2
BrunoD
12-Amethyst
(To:jgabriel)

Hello Jan,

In order to set the viewport parameter for rendering mashups on mobile displays, you need to use an extension.

Please follow this link to find an exemple of extension adding viewport parameter:

MobileHeader Extension

Bruno

jgabriel
13-Aquamarine
(To:BrunoD)

Yes I did almost the same extension: GitHub - Foxoncz/tw-metawidget-ext

Announcements




Top Tags