I have 2 profile on forms , desktop profile and phone profile , I want , when I open my app with any tablet , app open with phone profile , so I want tablet or phone open with phone profile , if is it desktop open with desktop profile
How can ı do this ?
Thanks
Look at the user agent returned by the device using Application.UserAgent. Looks like some Huawie devices return a user agent without “Mobile” in it: See https://github.com/faisalman/ua-parser-js/issues/351
See if there is “MediaPad” or “HUAWEI”. You can add multiple options to the “userAgent” regex:
“userAgent”: “(Mobile|MediaPad|HUAWEI)”
Use this ClientProfiles.json put in your project and set “Copy to Output Directory” to “Copy always”. It must be in /bin.
{ "profiles": [ { "name": "Phone", "userAgent": "mobile" } ] }