ionic-framework

Enabling CORS in Cloud Functions for Firebase - Ionic Angular Firebase Error

非 Y 不嫁゛ 提交于 2020-06-17 09:59:12
问题 Im trying to get an array of posts from firebase database and show them in my feed page, but i get an error about something enabling cors and whatnot. Im new to Ionic, Firebase and Angular so any detailed help will be a lot appereciated This is the functions of firebase code import * as functions from 'firebase-functions'; import * as admin from 'firebase-admin' const express = require('express'); const cors = require('cors'); const docs = express(); docs.use(cors({ origin: true })); admin

Ionic app crash after adding use permission to config.xml file

纵然是瞬间 提交于 2020-06-17 09:13:25
问题 By adding MODIFY_AUDIO_SETTINGS permission to config.xml, my app will crash after run. <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/uses-permission" xmlns:android="http://schemas.android.com/apk/res/android"> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> </edit-config> Then run app: ionic cordova run android -- device Also i try for ionic android permission import { AndroidPermissions } from '@ionic-native/android-permissions/ngx'; this

Ionic app crash after adding use permission to config.xml file

我与影子孤独终老i 提交于 2020-06-17 09:12:47
问题 By adding MODIFY_AUDIO_SETTINGS permission to config.xml, my app will crash after run. <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/uses-permission" xmlns:android="http://schemas.android.com/apk/res/android"> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> </edit-config> Then run app: ionic cordova run android -- device Also i try for ionic android permission import { AndroidPermissions } from '@ionic-native/android-permissions/ngx'; this

Ionic ion-modal height with keyboard bug

一个人想着一个人 提交于 2020-06-17 07:19:07
问题 I have a ion modal which i want to show of 60% of my screen, but when keyboard appears the modal resizes to 60% of the screen (including keyboard) so it shrinks a lot. I want the modal to stay the same size (ideally the size of its contents). Pictures explain a lot. This is the css .ion-modal.modal { width: 90%; min-height: 0 !important; height: 60% !important; top: 5%; left: 5%; right: 5%; bottom: 5%; background-color: #fff; -webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); box-shadow:

can't get ionic v4 CLI generated component to work

落爺英雄遲暮 提交于 2020-06-17 04:56:28
问题 I'm currently working with the latest Ionic and I'm having a hard time trying to get a CLI generates component to work. I start with a blank proyect and then create a new component with: ionic generate component my-component The command runs fine and creates the following files: CREATE src/app/my-component/my-component.component.html (31 bytes) CREATE src/app/my-component/my-component.component.spec.ts (664 bytes) CREATE src/app/my-component/my-component.component.ts (293 bytes) CREATE src

can't get ionic v4 CLI generated component to work

时光毁灭记忆、已成空白 提交于 2020-06-17 04:56:27
问题 I'm currently working with the latest Ionic and I'm having a hard time trying to get a CLI generates component to work. I start with a blank proyect and then create a new component with: ionic generate component my-component The command runs fine and creates the following files: CREATE src/app/my-component/my-component.component.html (31 bytes) CREATE src/app/my-component/my-component.component.spec.ts (664 bytes) CREATE src/app/my-component/my-component.component.ts (293 bytes) CREATE src

Angular fire firestore has no exported member 'FirestoreSettingsToken'

时光怂恿深爱的人放手 提交于 2020-06-16 18:32:45
问题 It happen at the first I do compile my project. The problem showing this: Module '".../node_modules/@angular/fire/firestore/angular-fire-firestore"' has no exported member 'FirestoreSettingsToken' my app.module.ts file: import { NgModule } from '@angular/core'; ... import { AppComponent } from './app.component'; import { AppRoutingModule } from './app-routing.module'; import { AngularFireModule } from '@angular/fire'; import { environment } from '../environments/environment'; import {

Cordova build error “Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.2”

偶尔善良 提交于 2020-06-16 07:43:13
问题 when I try to compile with ionic my application tells me the following error: Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=/home/jmarroni/Android/Sdk (DEPRECATED) Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.2 Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables. [ERROR] An error occurred while running subprocess cordova. Try installing the previous version of java 1.8 but do not recognize the

cordova: media.getDuration returns -1

放肆的年华 提交于 2020-06-16 04:24:11
问题 I am using Media.getDuration() function to get duration of an audio file but I am always getting -1 as response. This works fine if I build using build.phonegap.com But whenever I build using cli I then getDuration does not work. Following are simple steps to reproduce this issue: CLI: cordova start my_project cordova plugin add cordova-plugin-media cordova platform add android cordova build android www/index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4

Is there a way to overwrite a saved file in firebase storage?

偶尔善良 提交于 2020-06-15 23:48:13
问题 I am dealing with profile pictures in my ionic 1 App. I am searching for a way to update a file in firebase storage such that the download link remains the same. Is it possible or any other way to achieve the required? 回答1: You can't update the file and maintain the same public download link--it's a different file, so it's assumed that you might want to change the access permissions Just re-fetch the URL and download the file once it's been updated (it's actually returned in the metadata