cordova

Bluetooth LE notifications not received on iOS

房东的猫 提交于 2020-03-26 04:29:16
问题 We are working on a bluetooth project using cordova as a xplatform development tool. We are developing for android and iOS and writing a BLE plugin for cordova ourselves. On Android everything is running fine. Now comes the problem: On iOS we are able to read/write and even subscribe to notifications. The problem comes when we try to receive a updated value, then nothing happens. In short - connect to device - discover services - discover characterics - subscribe to notification

UILaunchStoryboardName and it's value CDVLaunchScreen is being removed by ionic prepare command

拥有回忆 提交于 2020-03-25 18:57:49
问题 I have a Ionic Cordova project and am trying to make sure that it is fullscreen on iPhone X and newer phones. I have gone to questions like this one and everything works fine until I run ionic prepare and it removes <key>UILaunchStoryboardName</key><string>CDVLaunchScreen</string> from the .plist file. I tried adding this: "config_munge": { "files": { "*-Info.plist": { "parents": { "UILaunchStoryboardName": [ { "xml": "<string>CDVLaunchScreen</string>", "count": 1 } ], to my ios.json and that

My App downloaded from the playstore fails to call web service

佐手、 提交于 2020-03-25 03:08:09
问题 I recently developed a cordova App that is uploaded to google play store. I tested this app on my mobile and simulators for weeks and everything works fine. However, when i download the same app from the playstore it fails to call any of the web services and such doesn't display any content. cordova : 9.0.1 npm : 6.10.1 cordova-android : 7.0.0 I have gone through every line of code and i can't seem to find the problem, i replaced every single call to window.localStorage to a global variables

利用Cordova开发移动应用程序

可紊 提交于 2020-03-23 07:33:49
不少内容摘自 易百教程 Hybrid App 简介 简介详情 混合型移动应用,是指一种介于Native App(本地原生应用)与Web App (网页应用)之间的应用,该类应用的开发除了使用到本地平台开发技术(Android、iOS、 BlackBerry等)外,部分功能还使用了Web技术,通过内嵌浏览器显示网页的方式来实现。 PhoneGap与Cordova PhoneGap是一个使用Web技术(HTML,CSS和JavaScript)开发跨平台移动应用的免费且开源框架,目前很多主流的移动开发框架均源于PhoneGap,比如WeX5、appMobi、Worklight等。而要了解Cordova,得先了解一下PhoneGap的一些背景: PhoneGap框架的起源于加拿大一家叫Nitobi的软件公司,08年一次iOS开发者大会上,该公司的几个人提出一个想法:Bridging the gap between the web and the iPhone sdk,想做一个工具来弥补Web和iOS开发之间的不足,这是PhoneGap名字的来源。 2011年10月,Adobe收购了创立PhoneGap项目的Nitobi公司,随后把PhoneGap项目捐给了Apache基金会,但Adobe保留了PhoneGap的商标所有权。故项目到了Apache旗下,改了个名字叫Apache

Angular 2.0 router navigation not working on iOS WKWebView

拜拜、爱过 提交于 2020-03-21 11:26:07
问题 Because of some performance issues, I'm trying to upgrade an angularJS2/phonegap app to use WKWebView on iOS. Unfortunately, any calls to route navigate do not work. This includes routerlink and this.route.navigate calls. There are no errors being thrown. Has anyone else seen this and/or perhaps have a workaround? The code works fine using the normal UIWebView. I'm a relative newbie to Angular so any suggestions are welcomed. Here's what some of the relevant code looks like: import {

Ignore accessibility settings for Cordova app

て烟熏妆下的殇ゞ 提交于 2020-03-21 05:33:24
问题 The answer that is posted everywhere is to use this with the associated plugin: if (window.MobileAccessibility) { window.MobileAccessibility.usePreferredTextZoom(false); } But that doesn't work. The plugin isn't maintained and it has zero effect on the app display in Android 10. I really need to figure out how to ignore the screen zoom setting of the device and display the app normally. Any help would be greatly appreciated. P.S. please don't leave a comment just to say that this isn't a good

cordova 一个将web应用程序封装成app的框架

冷暖自知 提交于 2020-03-19 21:27:11
cordova的详细介绍请参考这个链接:http://www.zhoujingen.cn/blog/7034.html 我接下来主要将如何搭建。 1.首先你需要下载几样东西 1.jdk. 2.android_SDK. 2.安装这两个,并配置环境变量 这里jdk的环境变量配置我就不细说了。 android_SDK的环境变量配置 C:\Development\android-sdk\platform-tools C:\Development\android-sdk\tools 将这两个目录添加到系统path中,注意,这里一定是你的android-sdk目录,不要直接用我的奥! 3,下载cordova并安装平台等操作 下载cordova是用node本身自带的npm,所以在这之前你还需要安装node(这里默认你已经安装好了node) 首先你可以在某个盘里面新建一个文件夹,名字随意命名(webApp)。然后在命令行中进入到那个目录下面,在执行下面的操作。 1 安装Cordova Cordova的命令行运行在 Node.js 上面并且可以通过 NPM 安装。 根据 平台具体指导 安装相应平台的依赖。打开命令提示符或终端,然后键入 npm install -g cordova . 例如:$ npm install -g cordova 2 创建一个项目 使用命令行创建一个空的Cordova项目

Ionic 创建项目

妖精的绣舞 提交于 2020-03-16 11:52:32
Ionic 创建项目 Ionic简介 Ionic是一个开源的移动应用程序开发框架,它可以轻松地使用web技术构建高质量的跨平台的移动应用。可以让我们快速开发移动App、移动端WEB页面、微信公众平台应用,混合app web页面。 Ionic4目前已经发布了基于Angular的正式版本,对 React 和 Vue 的支持尚处于 alpha 状态,未来我们可以用自己喜欢的语言结合Ionic来开发移动端应用。 Ionic4是Ionic有史以来最快、最小和最可扩展的版本。 Ionic 4 优异的性能则让 Ionic 成为了构建高性能 PWA 的最佳 UI 框架。 Ionic 团队花了一年的时间使用 Stencil 构建一个 Web 组件管道来生成 Ionic 组件,以达到 Google 规定的性能标准,使用新的异步组件加载和交互的方法。确保Ionic4有更快的运行速度。 Ionic 官网 ionic官网: https://ionicframework.com/ ionic中文: http://www.ionic.wang/ 安装Ionic 安装ionic npm install -g cordova ionic 创建Ionic应用 使用Ionic官方提供的现成的应用程序模板,或一个空白的项目创建一个Ionic应用。 ionic start myApp tabs ionic start

wp8应用在cordova下关于navigator.notification.beep的问题

故事扮演 提交于 2020-03-12 17:04:34
打开org.apache.cordova.dialogs插件下的Notification.cs文件 将beep方法修改为: public void beep(string options) { string[] args = JSON.JsonHelper.Deserialize<string[]>(options); int times = int.Parse(args[0]); string resourcePath = BaseCommand.GetBaseURL() + "Plugins/org.apache.cordova.dialogs/notification-beep.wav"; StreamResourceInfo sri = Application.GetResourceStream(new Uri(resourcePath, UriKind.Relative)); if (sri != null) { SoundEffect effect = SoundEffect.FromStream(sri.Stream); SoundEffectInstance inst = effect.CreateInstance(); //添加的代码 if (times == 0) { inst.Volume = 0.0f; } ThreadPool

Cordova - Windows 下创建第一个 Android App

我们两清 提交于 2020-03-12 00:32:15
官方文档: Create your first Cordova app Android Platform Guide 安装 JDK 和 Android SDK 注意: 需要将 JK 和 Android SDK 所在目录添加到环境变量中,分别命名为 JAVA_HOME 和 ANDROID_HOME ,否则编译时 Cordova 报错。 安装 Cordova 因为 Cordova 命令行工具是作为一个 npm 包来分发的,因此需要预先安装 Node.js ,并且能够调用 node 和 npm 命令 。 假设已经安装好 Node.js 以及 npm,利用 npm 工具能自动下载 Cordova 模块。 Windows 下: C:\>npm install -g cordova on OS X and Linux: $ sudo npm install -g cordova 创建App 切换到你的源代码目录,创建一个 Cordova 项目: $ cordova create hello com.example.hello HelloWorld 这将会创建 Cordova app 需要的文件夹结构,默认情况, cordova create 脚本会生成一个基于Web应用的骨架,主页是项目下 www/Index.html 文件。 添加平台 以下所有命令都需要在项目目录下运行,或任意的子目录: $