ionic-framework

What is the best way to update android widget on screen_on. Is it supported in Android Oreo (API 26)

别等时光非礼了梦想. 提交于 2020-01-01 03:20:35
问题 I created a widget, which was working quite fine, and then I changed targetSDK from 23 to 26, due to the requirement from Google Play Developer Console. After switching to Android SDK 26, my app widget is no more updating on the screen_on/User_present event. I can see that there are a bunch of changes in Android 26 for background running task due to (Background Execution Limits). Following are my questions? Q1- How can I update my app widget on every screen_on event, so that the user will see

Ionic Android Build failed : Unable to start the daemon process

拜拜、爱过 提交于 2020-01-01 02:49:25
问题 when i'm running ionic build android --release i get an error Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap Does anyone know the fix ? 回答1: I got the solution by adding a new system variable name : _JAVA_OPTIONS and value : -Xmx512M 回答2: After changing the setting in the environment you should restart your Command Prompt CMD to update environment variables 回答3: your solution: I got the solution by adding a new system variable name : _JAVA

How do I install new fonts in Ionic 4?

吃可爱长大的小学妹 提交于 2019-12-31 21:31:42
问题 Does anyone know how to update the font for Ionic 4? I tried adding the aileron.woff to assets/fonts and putting this in the variables.scss to no avail. src: url('../assets/fonts/aileron.woff') format('woff'); 回答1: This is how I managed to add a custom font to my Ionic application Add a directory that contains the font files to the project under the folder src\assets\fonts src\assets\fonts\myCustomFont | +-- MyCustomFontBold.ttf +-- MyCustomFontBoldItalic.ttf +-- MyCustomFontItalic.ttf +--

How do I install new fonts in Ionic 4?

三世轮回 提交于 2019-12-31 21:31:14
问题 Does anyone know how to update the font for Ionic 4? I tried adding the aileron.woff to assets/fonts and putting this in the variables.scss to no avail. src: url('../assets/fonts/aileron.woff') format('woff'); 回答1: This is how I managed to add a custom font to my Ionic application Add a directory that contains the font files to the project under the folder src\assets\fonts src\assets\fonts\myCustomFont | +-- MyCustomFontBold.ttf +-- MyCustomFontBoldItalic.ttf +-- MyCustomFontItalic.ttf +--

Angular: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true

做~自己de王妃 提交于 2019-12-31 12:21:11
问题 I know there are a lot of questions concerning CORS already but they don't seem to answer my question. So I have a client app written in Angular which will be used to create a mobile app (with Apache Cordova). The html files and JavaScript files will be loaded from the mobile device. When I simulate that and I send requests to the REST API server I first got "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://localhost:82 ' is therefore not allowed

Ionic 3: One header component for several pages

浪尽此生 提交于 2019-12-31 10:40:56
问题 I'm migrating from AngularJS to Angular and started to use Ionic 3 (latest) to build my app. But I have a small problem: I want to use one header on some pages with sign out function and etc. I don't want to implement it in every component page and I want to avoid duplication of code. I tried on my own. First of all I create separate header component header.html <ion-header> <ion-navbar color="primary-light"> <ion-title> Super App </ion-title> <ion-buttons end> <button ion-button class=

Ionic - Add/Remove phonegap-push-plugin - CocoaPods was not found

一笑奈何 提交于 2019-12-31 09:11:21
问题 I'm writing an Ionic app but I'm getting so many issues. One issue in particular is that when I try to add the phonegap-push-plugin using the command sudo ionic plugin add phonegap-plugin-push I get the below error: Error: CocoaPods was not found. Please install version 1.0.1 or greater from https://cocoapods.org/ I've obviously tried installing this software as the error suggests, but I cannot find version 1.0.1 anywhere. I'd also like to understand what this is required for and why Ionic

How to watch console.logs in ionic emulator?

依然范特西╮ 提交于 2019-12-31 09:11:11
问题 I'm building an app using the Ionic framework, which I've done in the browser until now. Because I now want to use the cordovaOauth plugin I need to use the emulator. The problem is that I can't see any console.log() in the emulator as I do in the browser, which makes it hard to debug. Does anybody know how in Ionic/Cordova I can make use of console logging in the emulator? All tips are welcome! 回答1: Just enable the console logs in the emulator. Here my example: > ionic emulate ios -

How to compare two field of two queries in firestore? [closed]

心已入冬 提交于 2019-12-31 07:34:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 days ago . I am developing a mobile application with ionic and firestore. I am stuck on the following point: When I make a query on a collection, I want to check if a field of this collection is equal to another field of another collection. I am new to this development, can someone please help me? The code below is what I

Ionic Firebase and SQLite

∥☆過路亽.° 提交于 2019-12-31 05:15:07
问题 I'm using SQLite in my project, but for Login I'm going to use Firebase. Can I use the 2 databases in the application? And is it possible to sync them? The Login with the products etc that comes from the SQLite bank? Thanks 来源: https://stackoverflow.com/questions/52721301/ionic-firebase-and-sqlite