Questions tagged [mobile-website]

Mobile Website refers to the design and implementation of web content aimed at clients using mobile devices such as phones or tablets.

Mobile websites allow us to consume information that has been formatted to better fit the browser on our mobile devices.

When consuming content from a phone or tablet, websites that were not designed for these devices can often be difficult to navigate or interpret. Mobile websites bridge this gap by offering content designed specifically for mobile consumption.

Some solutions include redirecting users to a separate mobile web sites or using media queries or some other browser detection to serve alternate styling or HTML.

Another consideration of mobile websites is that of page weight. Because many mobile browsers use mobile carrier networks to connect to the internet, it is a good practice to conserve the amount of data your page requires. These practices may include compressed scripts or resources, smaller images suited specifically for mobile consumptions, or otherwise reducing page size by breaking up the content into more manageable areas/pages.

1460 questions
22
votes
2 answers

How to keep WebRTC dataChannel open in phone browser inactive tab?

I am making a web application that uses WebRTC. It works just fine on desktop browsers. However on a small smartphone web browser, there are unwanted events: When switching tabs on the mobile web browser chrome for android and firefox for android,…
Walle Cyril
  • 3,087
  • 4
  • 23
  • 55
21
votes
3 answers

How to detect touch device in 2019?

For my app, I need to radically change the entire UX for touch devices using an onscreen keyboard (eg. mobile, touch TV) vs mouse/kbd devices (eg. desktop, a mobile with a bluetooth mouse/kbd). NB. I've already grokked responsive layout with CSS…
pinoyyid
  • 21,499
  • 14
  • 64
  • 115
21
votes
8 answers

Detect whether browser has keyboard/arrow keys in web page

I have a full-screen game in HTML+JavaScript, which uses the arrow keys as primary controls. This cannot be used on keyboardless Android devices (I haven't tested on iOS), and even if the soft keyboard had arrow keys it would take up unnecessary…
Kevin Reid
  • 37,492
  • 13
  • 80
  • 108
21
votes
3 answers

"Add to homescreen" button in Android does not show website as a Web App

I've created a mobile-friendly web site with jQuery Mobile and added some meta info so that it should be pinned to iOS and Android homescreens and should be launched as a web app (in other words: in a browser, but without browser navigation…
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
21
votes
10 answers

Redirect mobile devices to alternate version of my site

We've got an alternate version of out website ready for mobile devices. The content we serve is different and it works well. What is the best way to detect which version to serve. We don't have a list of all mobile devices so to use the user-agent…
32423hjh32423
  • 3,048
  • 7
  • 44
  • 59
21
votes
4 answers

Paypal Adaptive payment for mobile web

Im integrating Paypal Adaptive Payment API for a mobile website. But when Im submitting payment to https://www.paypal.com/webscr?cmd=_ap-payment&paykey=value ( For Sandbox : https://www.sandbox.paypal.com/cgi-bin/webscr ) Its always redirecting to…
Sency
  • 2,818
  • 8
  • 42
  • 59
20
votes
4 answers

Is there any use of favicon.ico for mobile websites?

Is there any use of favicon.ico for mobile websites? will it be shown in browser address bar and tabs in mobile websites We use apple icons in mobile websites. what about Android,…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
20
votes
7 answers

Sending an SMS to a Cellphone using Django

I am building an application, where I have this little survey module, which sends out a simple sms to the phone number I give and has to collect the response(if the user fires it) and show it to me. I am using to django build my project. I have…
Nanda Kishore
  • 2,789
  • 5
  • 38
  • 61
19
votes
5 answers

Media query not working in IE9

I'm having a strange problem that only occurs with IE9. I'm working on a web page that has a desktop layout, and a mobile layout. Same HTML, different CSS. The problem happens with the code below: @media only screen and (min-device-width: 768px) and…
John Hansen
  • 191
  • 1
  • 1
  • 3
19
votes
8 answers

CakePHP website mobile version

I have developed a full website with CakePHP framework and we'd like to make a very light version of the website for mobile devices (mainly iPhone/iPad). Is there a way to use the existing website with a new sub domain (for instance…
Nicolas
  • 2,754
  • 6
  • 26
  • 41
19
votes
5 answers

em vs px... for mobile browsers

For desktop browser all modern browser uses Zoom functionality so we can use PX but if same site can be seen on mobile then would px not be good for zooming in mobile browsers. or use of px is also fine for mobile browsers. even if we don't care for…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
19
votes
5 answers

SVG support on smart-phone browsers

I am investigating SVG, so I was wondering if anyone knows how good SVG support is for browsers on smart-phones. I know Opera Mini/iPhone support a lot of SVG Tiny, but I cannot figure out the support for other browsers (Blackberry, Pre, Android,…
Divya Manian
  • 1,927
  • 11
  • 16
19
votes
5 answers

Converting a regular MVC site for use in phonegap

I have a site that's done using ASP.NET MVC and jQuery. Is it possible to modify my existing project without too much of rework so that it can be used in phonegap to create iphone/android apps?
Prabhu
  • 12,995
  • 33
  • 127
  • 210
19
votes
6 answers

Getting (mobile) device name from javascript

Is there a way to get the name of a mobile device (e.g. "John's iPhone" ) using javascript? Maybe I wasn't very clear... what I meant is not whether it's an iPhone, iPad etc. but the "device name" - for example it can be "John's iPhone".
julius_am
  • 1,422
  • 2
  • 23
  • 42
18
votes
4 answers

what units do you use for css for mobile web apps?

px? em? pt? seems like with varying device sizes and densities it's getting to be time to use something absolute like pts. Can anyone point me to a good, recent write-up of what to use when? (I'm specifically targeting webkit-based mobile devices as…
sprugman
  • 19,351
  • 35
  • 110
  • 163
1 2
3
97 98