专心做设计!开源跨平台应用开发框架Appverse Mobile

更新时间:2014-10-10 02:08:45 点击次数:2409次

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>  

本站文章版权归原作者及原出处所有 。内容为作者个人观点, 并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是一个个人学习交流的平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽,造成漏登,请及时联系我们,我们将根据著作权人的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。

回到顶部
嘿,我来帮您!