每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;微博:https://weibo.com/openingsource;電報群 https://t.me/OpeningSourceOrg
今日推薦開源項目:《Markdown編輯器 MarkText》GitHub鏈接
推薦理由:Mark Text 是一款高性能的 Markdown 編輯器,運行於 Mac、Windows 和 Linux 平台。它沒有選擇左邊寫作右邊預覽的模式,而是直接在輸入文字之後預覽,同時使用 snabbdom 來渲染頁面來保證可以流暢的進行書寫和預覽。它自身支持支持 CommonMark Spec 和 GitHub Flavored Markdown Spec 語法格式,所以允許直接將生成後的文本複製到支持Markdown的社區和網站。而且它還擁有多種編輯模式,可以自動補全,甚至還可以快速添加斗圖。
今日推薦英文原文:《What is the Best Open Source Software to Create an App?》作者:
原文鏈接:https://opensourceforu.com/2018/05/what-is-the-best-open-source-software-to-create-an-app/
推薦理由:介紹了可以創建跨平台應用程序的快速開發平台 PhoneGap ,這個開發平台能夠使用 CSS,HTML 和 JavaScript 製作用戶界面
What is the Best Open Source Software to Create an App?
PhoneGap is the most popular open-source software to develop an application and has been downloaded by thousands of developers millions of times. The software can be installed from mobile app stores and directories. This software works with the Apache Software Foundation (ASF) so it will always stay open source and free under the Apache License, Version 2.0.
While you are planning to build applications for platforms- Android, iPhone, Window, and other different platforms, PhoneGap can solve this by utilizing standard web technologies to link web applications and mobile devices.
Understanding the PhoneGap
Understand the PhoneGap in short; it is an application container technology which helps a software development company in creating pre-installed native applications for mobile implementing HTML, CSS, and JavaScript code. The framework is 100% open-source under the Apache Cordova project. We are discussing some standard services thoroughly you could know the PhoneGap deeply-
PhoneGap API
PhoneGap offers an API (application programming interface) that enables you for approaching native operating system implementing JavaScript. You can create your application logic with the help of JavaScript code and the API can handle communication with the native operating system. Moreover, you can take benefits of the JavaScript-to-native communication process to customize native plugins in PhoneGap. The Native plugins will allow you to construct your own classes and equivalent JS interfaces for utilizing within PhoneGap applications.
PhoneGap UI
PhoneGap user interface is made using CSS, HTML, and JavaScript. The UI layer of a PhoneGap application is known as a web browser view that assumes 100% width and height of the device. You can construct your application with navigational, interactive, content elements, and applications chrome using HTML, CSS based UI.
The PhoneGap web view is the same that is utilized by the native operating system. On iOS platform, this is known as the Objective-C UIWebView class and on Android platform, this is recognized as android.webkit.WebView. So, there are many disparities in the web view rendering engines between operating system.
PhoneGap Application Distribution
As the PhoneGap applications are created in HTML, CSS, and JavaScript code the finishing step is binary application archive that can be distributed throughout standard application ecosystems. Have a look at the given points-
- The output for iOS applications is an IPA file, also known as iOS Application Archive.
- For Android, the output is an APK file, also considered as Android Package.
- The output for Window application comes as a XAP file which also known as Application package.
These same application package systems are utilized by Native application and also can be shared throughout the suitable networks like- Amazon market, BlackBerry App World, Window mobile devices market, Android and iOS market etc.
PhoneGap Application Architecture
Specific application developers are going to change on a case-by-case base, but most data-driven applications utilize the following basic architecture-
- The PhoneGap application works as a client for the customers to cooperate with.
- The PhoneGap client makes contact with an application server to obtain data.
- The application server manages business logic and makes connection with a back-end data warehouse.
PhoneGap can work with any application server utilizing standard web protocols. The server works on business logic and calculations, and usually recovers or endures data from a separate data store – this is generally considered as a relational database, but could be any arrangement or method for data determination.
PhoneGap Plugin Library
We are discussing some PhoneGap plugins that can be used in application development for multiple platforms.
- Cordova-Plugin-urlhandler
It can be performed on Android, iOS, and Window platforms.
Installation code
$ Cordova plugin add cordova-plugin-urlhandler -variable URL_SCHEME=mycoolapp
–Usage:-
<a href="mycoolapp ://"> Open my app</a> <a href="mycoolapp://somepath">Open my app</a> <a href="mycoolapp: //somepath?foo=bar">Open my app</a> <a href="mycoolapp: //?foo=bar">Open my app</a>
These all email will work properly while you are launching your application linking with.
- Cordova CameraRollLocation plugin
It will provide you an API for connecting camera-roll photos with moment information and location. It can be performed only on iOS platform.
Installation code:-
ionic plugin add Cordova-plugin-add-swift-support –save ionic plugin add Cordova-plugin-camera-roll-location --save ionic build ios |
-
PhoneGap Plugin BarcodeScanner
It can support Android, iOS, Window 8, Window phone 8, Browser, and BlackBerry 10.
Installation: –
PhoneGap plugin add PhoneGap-plugin-barcode scanner
- Cordova-plugin-parse-pushhandler
IT can support Android and iOS platform and helps in handling push messages from parse.com.
-
Cordova-plugin-1password
It is used for adding 1 Password App Extension into PhoneGap application and supports only iOS environment.
Installation: –
cordova plugin add cordova-plugin-1password
Properties: –
OnePassword.findLoginForUrl(succesCallback, errorCallback, url) OnePassword.storeLoginForUrl(succesCallback, errorCallback, username, password,Url, title, sectionTitle)
Third-Party Tools for PhoneGap
Some third-party tools are discussed here that can be used with PhoneGap-
- ConfiGAP
ConfiGAP was made to make easy the process of creating config.xml file using the PhoneGap Build.
- Theme Builder
You can use UI elements that suit your application to create custom theme without writing code in CSS.
- BuildFire
It doesn』t require any type of technical skill or proficiency. An iOS or an Android expert could use BuilFire to customize complex applications with very simple steps.
- Mobiscroll UI
It provides necessary products when creating AngularJS application on time with cross-platform UI framework and elements. It is easy to start for Angular developers and offers deep customization features.
- Amazon Mobile Ads API Plugin
The Amazon Mobile Ads API supports Android, IOS, and FireOS. It is compatible with both mobile and tablet. So, you can use it in your Google play store, Amazon app store, and iTunes.
PhoneGap Community
PhoneGap has vast global community that helps in contributing different types of projects related to app development. They are active to give any information to you anytime and focus solely on your every project providing decisive solutions for efficient development across the mobile platforms.
Hope, in this blog you could understand the PhoneGap facilities which makes it top open-source framework for mobile app development. There are several types of software that offering native or cross-platform mobile app development services for different types of devices. PhoneGap definitely can be a perfect choice for creating different types of native applications. Additionally, PhoneGap provides an Adobe AIR app with online training system so you could learn native APIs and fabricate mobile applications using its own platform.
每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;微博:https://weibo.com/openingsource;電報群 https://t.me/OpeningSourceOrg