cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Detect mobile device

jgabriel
12-Amethyst

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.

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoD
9-Granite
(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
9-Granite
(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
12-Amethyst
(To:BrunoD)

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

Top Tags