mobile-website

iBeacon mobile web application development

喜夏-厌秋 提交于 2019-12-04 17:16:02
Are there any custom APIs for iBeacon access from mobile web applications? Probably it could be a mobile safari extension. Thanks in advance. Unfortunately, no. You could write a native iOS app that looks for iBeacons in the background and launches a specific web app URL on mobile Safari. You could even pass ranged beacon info in query parameters. But you would still need a native app installed on the phone to do this. And once the Safari page is launched, getting further updates is impossible, unless you use a complex web service proxy to the native app. 来源: https://stackoverflow.com

How do I get back to the iPhone web app after having logged in with Facebook Connect?

我的未来我决定 提交于 2019-12-04 16:57:39
I have a mobile web site built using jQuery Mobile. I often run it in full screen/mobile web app mode on my iPhone (I have added the web app to my iPhone home screen). On one of the pages, the user is required to log in to Facebook using the Facebook Connect JavaScript API. If the user is not already logged in, this is done by clicking a login button. The event handler for this button looks like this: ("#fbLogin").click(function () { FB.login(handleStatusChange(response), { scope: "publish_stream", connect_display: "touch" }); }); In the above code I have inserted some line breaks for better

jQuery Mobile background image not showing on a full screen iPad web app

China☆狼群 提交于 2019-12-04 14:47:21
I have set a background on the data-role="page" element like so <div data-role="page" style="background: transparent url('img/background.jpg') no-repeat;" > It works perfectly fine on a desktop browser and on the iPad safari browser. The issue I am having is that when you add the website to the home screen as an 'app' and it is a full screen web app. It doesn't show the background... I have tried setting it via a style sheet and inline and both ways give me the same issue. I am completely out of ideas as to why this wouldn't work. Any ideas are greatly appreciated. Max Rose-Collins In the end

How to create a mobile friendly website [infrastructure]

拥有回忆 提交于 2019-12-04 14:04:15
if i wanted to create a mobile friendly version of a relatively small website would it be better to have a sub domain that redirects to a completely new url with separate markup and styling or would it be better to detect the user agent in code and programmatically change to a different mobile friendly stylesheet, or is their a better infrastructure based solution i am overlooking.. Thanks. If SEO isn't really a concern, Using different stylesheets with the same HTML is much easier, in terms of maintenance. You could try abit of both. Have the main site detect the useragent, then redirect to

Background behavior for iOS Web App (so app doesn't restart)

你。 提交于 2019-12-04 14:02:17
问题 I'm trying to build a mobile web app and am intrigued by the "apple-mobile-web-app-capable" option, making the app feel a lot more native. The issue I'm having is that it's an app that lets a user browse through a bunch of content, some of which opens a new browser window outside the web app (on purpose). The problem is, when a user goes back to the web app, it re-launches and starts them from the home page. Has anyone found a way to avoid this complete reloading process? 回答1: ive got it

Can anyone suggest design pattern to separate business logic and presentation logic in JavaScript?

时间秒杀一切 提交于 2019-12-04 13:44:00
I am going to develop mobile web application. App will use web services for back-end data. All presentation and business logic needs to write in javascript. There is different design in ios and android. And don't want to rewrite business logic separately for both. Can anyone suggest design pattern to separate business logic and presentation logic in JavaScript. A good design pattern is to design a "REST-ful" API for storing, retrieving, and modifying the data that the application operates on. Then design separate user interfaces that share this common API. When writing the code, use separate

Switching stylesheet with Javascript based on browser

爱⌒轻易说出口 提交于 2019-12-04 10:44:01
I'm currently trying to edit a website for a client which uses Adobe Contribute so it uses a different stylesheet if the user is browsing from a mobile phone. The mobile phone stylesheet is much simpler and strips out background images and styles to reduce load time. I understand it would be better practice to have a completely seperate website for the mobile, but this is not practical for the client as he needs to be able to update his websites content using Contribute. This is working in some devices already such as the iPhone (last time I tested!) but on my Android phone I have a strange

What are the alternatives for file upload on ios safari?

北战南征 提交于 2019-12-04 09:57:19
I have a mobile web app/site and I would like the users to upload a word document to our site. As safari on the iPhone is not able to upload files what are the alternatives? I have seen http://code.google.com/p/iphone-photo-picker/ however this is not photograph. Is it documented anywhere that the Dropbox API, iCloud API or another API would allow selection a file from a user to copy to our servers? Alternately is there another way for our iPhone users using safari? nLL No, iPhone does not offer input type file on it's browser (except for images or videos). What i do is, have users to send

Is there an Android equivalent to Google Maps URL scheme for iOS?

十年热恋 提交于 2019-12-04 08:31:40
I want to open Google Maps in Navigation mode from a mobile web link. This seems easy enough for iOS devices using https://developers.google.com/maps/documentation/ios/urlscheme Is there an equivalent for Android? All I could find was this: https://developer.android.com/guide/appendix/g-app-intents.html But that doesn't allow you to specify "transitmode" and the other parameters needed to get directions as far as I can tell. Siddharth Lele Actually, a slight modification of the methods described in the iOS Doc would work here too (I tested it before putting it here albeit, in a native app and

IIS/ASP/ASP.net: How to structure web-site to expose mobile version

浪子不回头ぞ 提交于 2019-12-04 07:02:41
Pretend i have an existing web-site, e.g.: www.stackoverflow.com i now want to expose a mobile version of this web-site: m.stackoverflow.com IIS, with its host-header name resolution, would normally require two web-sites to be created: www.stackoverflow.com m.stackoverflow.com Except now i have two web-sites in IIS. This means i have to duplicate code/files between them. i don't need to (nor do i want to) duplicate all the "model" and "controller" code between two web-sites. i would much rather have one web-site that exposes a mobile version. i could have the default page in m.stackoverflow