cordova

300ms delay removal: using fastclick.js vs using ontouchstart

ぃ、小莉子 提交于 2020-01-28 15:50:18
问题 I'm using regular jQuery and I have an event handler that looks like this: $('#someID').on({ click: SomeFunction }, '.SomeClass'); This will produce a 300ms delay on the click event and I'm looking to remove this delay. What's the difference between rewriting this code like that: $('#someID').on({ 'touchstart': SomeFunction }, '.SomeClass'); and using an external library like Fastclick.js? 回答1: I work for the Financial Times and head up the team that created Fastclick.js. In principle, all

Mobile first! Wijmo 5 + Ionic Framework之:Hello World!

拥有回忆 提交于 2020-01-28 00:36:36
本教程中,我们用 Wijmo 5 和 Ionic Framework 实现一个Mobile的project:Hello World。 Ionic是什么? Ionic是一个HTML5框架、免费、开源,用于帮助生成hybird mobile Apps (混合移动应用)。 Ionic包括3部分: CSS 样式 :用于渲染Web页面。使得页面更接近原生移动应用 (Native App)。 AngularJS :Ionic使用AngularJs的扩展指令作为核心框架库。同一时候AngularJs也加快了开发过程。 Apache Cordova :Ionic使用Apache Cordova编译为mobile App,并提供了 ngCordova 库--使用AngularJs扩展的Cordova API库。 Ionic框架眼下依旧是beta阶段(截止本文完稿时间,最新版:v1.0.0-beta.12 "krypton-koala" · 2014-09-10 · MIT Licensed ),当前版本号支持iOS6+ 和 Android 4.1+版本号,且有计划会支持Windows设备。对其它较老的设备无版本号支持计划。 系统必备 本教程会使用到以下的环境,请预先准备。 Git Node.js Bower Apache Cordova 在本教程中。我们使用Chrome用于开发、调试。同一时候

phonegap build not showing splashscreen

半腔热情 提交于 2020-01-27 18:05:45
问题 This question has been asked in the past but none of the answers that I have found have solved the problem for me. I am trying to make a very simple phonegap app to show a splash screen and announce when it is ready. It is just a test app to work out how to use the splash screen. I am using phonegap build through the phonegap cli. phonegap version 3.5.0 tested on android only I have a www folder where config.xml is located. All the splashscreens are located within www/res/screen/<platform>

phonegap build not showing splashscreen

烈酒焚心 提交于 2020-01-27 18:05:19
问题 This question has been asked in the past but none of the answers that I have found have solved the problem for me. I am trying to make a very simple phonegap app to show a splash screen and announce when it is ready. It is just a test app to work out how to use the splash screen. I am using phonegap build through the phonegap cli. phonegap version 3.5.0 tested on android only I have a www folder where config.xml is located. All the splashscreens are located within www/res/screen/<platform>

phonegap build not showing splashscreen

拥有回忆 提交于 2020-01-27 18:00:07
问题 This question has been asked in the past but none of the answers that I have found have solved the problem for me. I am trying to make a very simple phonegap app to show a splash screen and announce when it is ready. It is just a test app to work out how to use the splash screen. I am using phonegap build through the phonegap cli. phonegap version 3.5.0 tested on android only I have a www folder where config.xml is located. All the splashscreens are located within www/res/screen/<platform>

h5(HBuilder+mui)开发App

别来无恙 提交于 2020-01-27 02:17:01
h5(HBuilder+mui)开发App 一、h5开发App分析 优点: 开发成本低,简单、快速、方便,一套代码几乎不用怎么修改就可以同时打包ios、android安装包。相比于App原生开发来说,开发成本要低很多 目前很多第三方SDK也越来越多的开放h5端的接口,生态环境比较活跃。 h5开发App,采用的是web前端的html5技术,各方面应用技术栈成熟,资料齐全。 缺点: h5开发App与原生的相比,说到底相当于是将h5界面嵌入到webview中,会存在页面渲染不及原生流畅。如果接触过cordova的朋友,可以研究一下coedova打包完vue成App后代码,其实就是讲h5部分的代码嵌入到原生的activity并通过webview加载。 开发工具框架之类的太多,如果一个不熟悉前端的新人过来,几乎不知道该如何下手。 所以对于一些业务逻辑简单,没有复杂的操作处理的应用,h5开发再合适不过。对一些重型的应用还是原生的为主,h5为辅助也是一个很好的搭配。 二、技术选择 cordova + vue: App整体使用vue项目来编写代码,使用Cordova来打包vue项目成App。 参考: (不过由于Cordova的配置等比较繁琐,本人不太推荐这一种方案) HBuilderX + h5: App整体采用html5,以及mui框架来实现,通过HBuilderX来打包成App。

ionic framework / cordova IOS : open local file - local file path

人走茶凉 提交于 2020-01-26 04:01:06
问题 I'm trying without success to open some local files with the CordovaFileopener2 Can somebody post a sample of code on how generate a local file path? I need for example to point www/pdf/document1.pdf Thanks a lot for your help Alfonso 回答1: Hi I have uploaded a sample project for file Transfer in git hub Please have a look and reply, if you have any queries 来源: https://stackoverflow.com/questions/32072337/ionic-framework-cordova-ios-open-local-file-local-file-path

Phonegap Application fullscreen through a button in html page

一个人想着一个人 提交于 2020-01-25 23:48:12
问题 I have a phonegap application which starts as a normal application (not in full screen mode). I need to provide a user option to enable fullscreen in my html. How can I make my application to be in full screen on button click through javascript or Phonegap utils? 回答1: You have to write a PhoneGap plugin that calls the native functionality to switch to full screen (e.g. like this for iOS). 来源: https://stackoverflow.com/questions/15757363/phonegap-application-fullscreen-through-a-button-in-html

Unable to load audio files via XMLHttpRequest using WKWebView

随声附和 提交于 2020-01-25 23:43:06
问题 I enjoy making old school arcade games using HTML5 Canvas and JS. I've been doing it for years and am probably a bit set in my ways. The games work great in Chrome / Safari on all modern devices. I figured I should try wrapping a game up using PhoneGap to see how it might perform as an app on the iOS AppStore. The game was pretty choppy although the audio played great. I read about the performance boost of WKWebView over the default UIWebView so added that to my config.xml. The game played

Modify notifications in Phonegap and Pushwoosh

爱⌒轻易说出口 提交于 2020-01-25 21:12:13
问题 I'm currently working on PhoneGap and Pushwoosh and have some questions: Is it possible to change the text / icon of the notification in the status bar? If yes, is it also possible to show the notification only when you have received some specified data? 回答1: You will need to modify SDK for that as this functionality unfortunately is not available out of the box. If you don't mind doing some Java coding it would be rather easy. You might need to modify this file: https://github.com/shaders