GFT Appverse是西班牙的一家公司,匯集了專門的工程師團隊致力于發展創新領域和實現優化開源軟件,并領導創建了Appverse項目。其針對移動和Web平臺分別推出了Appverse Mobile和Appverse Web框架,且代碼皆已托管至GitHub上。其中,Appverse Mobile是一款開源的跨平臺框架,目前支持Android、iOS和Windows,它允許開發者使用HTML5、JavaScript、CSS3,且還能夠幫助開發者充分利用移動設備的原生功能來構建自己理想中的應用。
Appverse Mobile通過為開發者提供豐富的JavaScript API來深度集成設備的原生功能,目的就是讓設備能夠更好的支持開發出的HTML 5應用。此外,即使針對不同的平臺,這些API也是一致的,確保開發者能把主要精力投放在自己的應用設計當中,而不用在意這些技術細節。當然,在幫你解決這些技術細節的同時,還讓你能自由的使用自己HTML5應用中的原生功能。
之所以選擇開源,Appverse Mobile團隊表示,是希望開發者在使用的時候不用顧忌太多,同時還可以借助各位用戶的能力經驗來讓Appverse Mobile變得更好。目前,平臺憑借易于使用、部署和管理等優點,成為了多個公司的選擇。
代碼示例:
[xml] view plaincopy
<?xml version="1.0" encoding="UTF-8"?>
<launch-config>
<apps>
<!-- The following are examples to call native applications in both platforms iOS and Android -->
<!-- example: launching Mail native application.
iOS:
<a href="mailto:${EMAIL_ADDRESS}?cc=${EMAIL_ADDRESS_CC}&subject=Greetings">mailto:${EMAIL_ADDRESS}?cc=${EMAIL_ADDRESS_CC}&subject=Greetings</a>
Android:
Using an implicit intent with the action SEND and a plain text mime type. In this case, no URI scheme is used.
Parameters passed when launching application (using the Appverse.System.LaunchApplication method) via the query string argument will be parsed and
passed to the Intent as extras (name/value string pairs)
-->
<app name="appmail">
<ios uri-scheme="mailto" uri-remove-double-slash="true"/>
<android-implicit-intent action="android.intent.action.SEND" mime-type="text/plain" parse-query-as-intent-extras="true"/>
</app>
<!-- example: launching telephone native application.
iOS: tel:${PHONENUMBER}
Android:
Using an implicit intent with the action DIAL and the "tel:" URI scheme.
-->
<app name="apptel">
<ios uri-scheme="tel" uri-remove-double-slash="true"/>
<android-implicit-intent action="android.intent.action.DIAL" uri-scheme="tel" uri-remove-double-slash="true" />
</app>
<!-- example: launching Maps native application.
iOS:
Specific URL. Example: <a href="http://maps.apple.com/?daddr?San+Francisco,+CA&saddr=cupertino">http://maps.apple.com/?daddr?San+Francisco,+CA&saddr=cupertino</a>
Android:
Two options, using explicit intent, or using the action VIEW with a specific "geo:" URI scheme
// example: map point based on address
geo:0,0?q=1600+Amphitheatre+Parkway,+Mountain+View,+California
// Or map point based on latitude/longitude
geo:37.422219,-122.08364?z=14
-->
<app name="appmaps">
<ios uri-scheme="http" />
<android-explicit-intent component-name="com..android.apps.maps/com..android.maps.MapsActivity"/>
</app>
<app name="appmaps-">
<ios uri-scheme="http" />
<android-implicit-intent action="android.intent.action.VIEW" uri-scheme="geo" uri-remove-double-slash="true" />
</app>
</apps>
</launch-config>
本站文章版權歸原作者及原出處所有 。內容為作者個人觀點, 并不代表本站贊同其觀點和對其真實性負責,本站只提供參考并不構成任何投資及應用建議。本站是一個個人學習交流的平臺,網站上部分文章為轉載,并不用于任何商業目的,我們已經盡可能的對作者和來源進行了通告,但是能力有限或疏忽,造成漏登,請及時聯系我們,我們將根據著作權人的要求,立即更正或者刪除有關內容。本站擁有對此聲明的最終解釋權。