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 version="1.0" encoding="UTF-8"?>
- <launch-config>
- <apps>
-
- <!-- 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.google.android.apps.maps/com.google.android.maps.MapsActivity"/>
- </app>
- <app name="appmaps-google">
- <ios uri-scheme="http" />
- <android-implicit-intent action="android.intent.action.VIEW" uri-scheme="geo" uri-remove-double-slash="true" />
- </app>
- </apps>
- </launch-config>
如果想要了解更多,可以进入项目站点进行详细解读。
传送门:Appverse Mobile官网、Github托管地址、mobilehub主页 |