Skip to content
Discussion options

You must be logged in to vote

iPads by default have a desktop user agent instead of a mobile one
You can force them to use a mobile user agent by using preferredContentMode config option in capacitor config file like this:

"ios": {
        "preferredContentMode": "mobile"
 }

You could also append your app name to the user agent so it's easier for the backend members to detect it's the mobile app by using appendUserAgent like this:

"ios": {
   "appendUserAgent": "yourAppName"
}

can also be used inside android object to append it to Android, or in the root so it's appended to both iOS and Android.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RRGT19
Comment options

@RRGT19
Comment options

@jcesarmobile
Comment options

Answer selected by RRGT19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants