cordova

Why Angular 8 router is not working in Cordova IOS with WkWebView?

倖福魔咒の 提交于 2021-02-16 14:06:26
问题 I have an existing application built with Angular 8 and its code is shared by a website and 2 mobile applications for Android and IOS , bundled with the help of Cordova . It is working fine but Apple has announced that they will soon no longer supports apps built with UIWebView : The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020. So I am forced to migrate it to WkWebView . There are several threads that I am aware

How to open a 2017 Cordova project in Visual Studio 2019

早过忘川 提交于 2021-02-11 17:27:24
问题 I have a Visual Studio project written using Visual Studio 2017 Tools for Apache Cordova, and I am unable to open it in Visual Studio 2019 (Message: incompatible) and there is no available Cordova project types. What's the best way to be able to open/edit/redeploy a Tools for Apache Cordova project? 回答1: You can't open it from visual 2019, because Microsoft stop supporting Cordova. The best way is to install visual 2017 for Apache Cordova projects only (to be lite in usage) and install latest

How to set cordova on my PATH for NetBeans Cordova project on a Mac?

这一生的挚爱 提交于 2021-02-11 16:43:09
问题 Using Netbeans 7.4 RC2. I was using the last beta and everything worked like a charm, but after upgrading, I started getting this error: Netbeans cannot find cordova or git on your PATH. Please install cordova and git. I know it's just that my my PATH needs to include cordova, since that was never required pre-RC, but I cannot figure out HOW!!! The two examples I've run across are on Windows, but I am on a MacBook. It's so aggravating that it's a one-line fix and I know nothing about how to

How to set cordova on my PATH for NetBeans Cordova project on a Mac?

北慕城南 提交于 2021-02-11 16:42:13
问题 Using Netbeans 7.4 RC2. I was using the last beta and everything worked like a charm, but after upgrading, I started getting this error: Netbeans cannot find cordova or git on your PATH. Please install cordova and git. I know it's just that my my PATH needs to include cordova, since that was never required pre-RC, but I cannot figure out HOW!!! The two examples I've run across are on Windows, but I am on a MacBook. It's so aggravating that it's a one-line fix and I know nothing about how to

How to localize app name in cordova for iOS?

非 Y 不嫁゛ 提交于 2021-02-11 15:01:34
问题 I am looking for a solution to localize my app's name in: English (EN) Chinese (Simplified) zh-Hans Chinese (Traditional) zh-Hant I am using build.phonegap to build my both apps so I cannot modify the platform code but instead it has to be from either some config on config.xml or using cordova hooks or any other solution. So far I found solution for android using hooks but it will not work for iOS. Thanks 回答1: For iOS you can do code in config.xml file. <platform name="ios"> <edit-config

My release apk crash immediately but the debug app work properly ionic 5

馋奶兔 提交于 2021-02-11 14:54:22
问题 I have installed ionic 5 and made project, it works fine on emulator, and debug on real devices properly working, but when I build release ionic build : ionic cordova build android --release --prod it shows: Add only entry points to the 'files' or 'include' properties in your tsconfig. cordova build android --release Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=/Users/wiqqi/Library/Android/sdk (DEPRECATED) Using Android SDK: /Users

Google Analytics not tracking views in Android Ionic 3 Application with gtag.js

荒凉一梦 提交于 2021-02-11 14:45:01
问题 I'm using gtag.js to track analytics on my Ionic application. This works with iOS, but not with Android. In index.html, I've add the script : <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-XXXXXXXX-XX', { 'send_page_view': false, 'app_name': 'MyApp' }); </script> I've made a provider for analytics : import { HttpClient } from "@angular/common/http"; import { Injectable } from "@angular/core"; import

iOS App doesn't update on ionic 2

旧城冷巷雨未停 提交于 2021-02-11 14:21:38
问题 I started to develop ionic 2 cordova app on mac and doesn't update ios Application. My pc specs are, node v8.9.1 npm v5.5.1 cordova v7.1.0 ionic v3.17.0 editor VSCode if I want some code change in ionic-v1 then I can edit platform -> ios -> www ->.js files or platform -> ios -> www ->.html files and reload xcode then changes appear on real device. But in ionic 2 app platform -> ios -> www folder contain minified files and cannot edit these files. so I follow this process but code doesn't

iOS App doesn't update on ionic 2

佐手、 提交于 2021-02-11 14:20:16
问题 I started to develop ionic 2 cordova app on mac and doesn't update ios Application. My pc specs are, node v8.9.1 npm v5.5.1 cordova v7.1.0 ionic v3.17.0 editor VSCode if I want some code change in ionic-v1 then I can edit platform -> ios -> www ->.js files or platform -> ios -> www ->.html files and reload xcode then changes appear on real device. But in ionic 2 app platform -> ios -> www folder contain minified files and cannot edit these files. so I follow this process but code doesn't

Disable download / install of App for a specific Android Version or Device

好久不见. 提交于 2021-02-11 06:40:40
问题 I just found out that the android version of my cordova/phonegap based app shows a bug on new android 5 devices (tested on Nexus 4 and Nexus 7). Not sure if the devices or the os version causes this (my guess: android 5) The problem is, that a relatively simple page cannot be scrolled - while buttons still responding to touch events. I'm working on a fix, but until this will be available I'd like to disable the app for all android 5 devices. So, basically I want to make the app manually