Here are a few ways to detect if the user is coming from a mobile device. Used for redirection, different interfaces, or special cases.
Javascript:
PROS: Most common solution.
CONS: Many mobile devices don't support Javascript or users turn it off.
<script>
var isMobile = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/);
</script>
Navigating the Mobile App Development Landscape
If you have an Apple product like an iPod touch, iPhone or iPad, and you haven't downloaded the new Alfresco Mobile for your Alfresco ECM you are living in the stone age. Alfresco not long ago released it's mobile edition to the world and I must say I am impressed with it. Yes, nowadays the computers are getting smaller and it may not be such a big deal to bring a laptop or a netbook anymore, but it still quite convenient to have your document repository at the palm of your hands.
What I really like about this app are
- able to connect to my document repository on my mobile device
Over the last of couple weeks we’ve been working on a mobile site/app, with a very standard layout: a location bar fixed on the top, a menu fixed on the bottom and the content being printed in between. I thought this would be a walk in the park until I realized that Safari on the iPhone doesn’t support scrolling inside divs, and “position:fixed” doesn’t really behave like it does on desktops.
Many programmers are suffering while implementing remote push notification service for their mobile projects because it requires both client and server side implementation.
Especially in server side, there are many disconnect situations that programmers need to manage such as exceeding the max number of sending push notifications, sending bad tokens and so on.
Urban Airship supports very good server side push notification service for mobile devices.
Note: This blog post was posted on July 13, 2011. Youtube embeding may have changed since then, they claim to still be fixing it and in beta.
This suggestion is to provide the best user experience when watching a Youtube video on your mobile website. A lot of times it is done incorrectly and users are redirected to either m.youtube.com or it opens up your phone's native Youtube application, which basically minimizes your browser. This pushes users away from your site and basically requires users to hit the back button to get back to your site.
