Web應用程序vs iOS應用-地理位置考慮。

[英]Web App vs iOS App - Geo Location Considerations


I am working on developing my first app. Essentially, I am trying to create a roadmap at this point and I am having difficulty figuring out what path is the best. I need users to be able to login with either their gmail account or their facebook account. Once they log in, I need permission to access their location, pictures, name, age and interests (facebook).

我正在開發我的第一個應用程序,從本質上說,我正在嘗試創建一個路線圖,我很難找到什么路徑是最好的。我需要用戶可以登錄他們的gmail帳戶或他們的facebook帳戶。一旦他們登錄,我需要允許訪問他們的位置,圖片,姓名,年齡和興趣(facebook)。

Would it be wiser to develop this app for iOS and Android separately or because it is a web app, I can make it compatible with both android and iOS devices and develop it with something like jquery mobile? The location part of the application is key. I was planning on using HTML5/JavaScript Geo to look up the users current location. Will this suffice? Or do most applications use the native OS geo location tools?

如果單獨開發iOS和Android的應用程序,或者因為它是一個web應用程序,我可以讓它與Android和iOS設備兼容,並開發出類似於jquery mobile的應用程序,這樣做會更明智嗎?應用程序的位置部分是關鍵。我計划使用HTML5/JavaScript Geo來查找用戶當前位置。這足夠了嗎?或者大多數應用程序使用本機OS geo定位工具?

Essentially the end goal is to develop a downloadable app for both iOS and Android. Which asks the users for permissions to access their friends list, location services, name, age etc. Once access is given, the user stays logged in until they manually log out. I appreciate any guidance in this regard. I am trying to avoid spending a lot of time on developing a big project on the wrong path and I appreciate any suggestions.

最終目標是為iOS和Android開發一個可下載的應用程序。它要求用戶訪問他們的好友列表、位置服務、姓名、年齡等。一旦獲得訪問權限,用戶就會一直登錄,直到他們手動退出。我感謝在這方面的任何指導。我盡量避免花很多時間在錯誤的道路上開發一個大項目,我很欣賞任何建議。

Thanks in advance

謝謝提前

1 个解决方案

#1


0  

The answer, of course, is it depends. HTML5 geolocation works fine if you just need the location. If you want to track someone accurately (for example a running app or a driving app) and need frequent updates then you want native. If you want your location updates to function when the app is minimized then you want native. Also, HTML5 may not work on older phones and older browsers, whereas native is guaranteed to work if they are able to open your app. But at this point, most phones will work fine.

答案當然是視情況而定。如果你只需要地理位置,HTML5地理定位可以很好地工作。如果你想准確地跟蹤某人(例如一個運行中的應用程序或一個驅動程序),並且需要頻繁更新,那么你就想要本地的。如果你想讓你的位置更新在應用程序被最小化之后,你想要本地。另外,HTML5可能不會在舊的手機和舊的瀏覽器上運行,而原生的瀏覽器如果能夠打開你的應用程序,就可以保證工作。但是在這一點上,大多數手機都可以正常工作。

Your third option is to split the difference if you don't want to build/support multiple native apps (or don't want to learn multiple languages). There are plenty of frameworks (e.g. PhoneGap, Cordova, etc) to allow you to build native apps (which access native geolocation) using web technologies like HTML5 and Javascript which function on all (major) OS platforms.

你的第三個選擇是,如果你不想構建/支持多個本地應用程序(或者不想學習多種語言),那就把它們分開。有很多框架(例如PhoneGap、Cordova等)可以讓你使用像HTML5和Javascript這樣的web技術來構建本地應用程序(它們可以訪問本地的地理定位),這些技術可以在所有(主要的)OS平台上運行。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/03/29/720c8ebfbc3c18ba02fc5c834a1d15a3.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com