ionic-framework

I can't get image downloadUrl from Firebase Storage (Angular/Ionic)

流过昼夜 提交于 2019-12-31 05:13:06
问题 I'm trying to get downloadUrl for an image from firebase, All properties like 'timeCreated', 'fullPath', 'contentType' are working well & pushed correctly! but I don't know why 'downloadUrl' doesn't work!! captureAndUpload() { this.dataProvider.captureImage().then(data => { this.dataProvider.uploadImage(data).then(res => { this.dataProvider.storeImageInformation(res.downloadURL); }); }); } Data provider: storeImageInformation(downloadURL) { this.db.list(`/profiles/${this.afAuth.auth

IONIC 3: Plugin BackgroundMode dont work: Object(…) is not a function

给你一囗甜甜゛ 提交于 2019-12-31 05:09:16
问题 I need to run the code “this.backgroundMode.enable()” in my project, but it shows me the following error: "Object(...) is not a function" It imports it in app.module.ts in the following way: import {BackgroundMode} from '@ ionic-native / background-mode / ngx'; ... providers: [ ... BackgroundMode ...] And in the page (in my case is in app.component.ts, after deviceready, like the official documentation says) i use like: import {BackgroundMode} from '@ ionic-native / background-mode / ngx';

How to run ionic in the background

吃可爱长大的小学妹 提交于 2019-12-31 01:33:28
问题 I am trying to run ionic serve in the background so I can test it via my rails app on circle ci. I thought I could do it with: nohup bash -c "ionic serve --nolivereload --nobrowser &" But unfortunately it doesn't work. Does anyone know how to run it in the background? 回答1: You could use screen : screen -d -m -L ionic serve --nolivereload --nobrowser 回答2: Why do you want it to run in background on CI ? It should be ok to run the command directly before your test: ionic serve --nolivereload -

Ionic 2 Events, publish and subscribe not working

我的未来我决定 提交于 2019-12-30 18:50:29
问题 I'm trying to use Publish and Subscribe from ionic-angular But I am not receiving any data nor error. Here are my codes Page 1 import {Events} from 'ionic-angular' static get parameters(){ return [[Events]]; } constructor(Events) { this.events = Events; this.events.publish("Msg", "Hello World"); } Page 2 import {Events} from 'ionic-angular' static get parameters(){ return [[Events]]; } constructor(Events) { this.events = Events; this.events.subscribe("Msg", (data) => { console.log(data[0]); }

ionic content not scrolling

房东的猫 提交于 2019-12-30 18:50:12
问题 I have gone through many answers, but nothing worked for me. I have a simple .html file and ionic content just does not scroll. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above

How to show item from json Array one by one in Angular JS

流过昼夜 提交于 2019-12-30 14:07:51
问题 I am developing one prototype application in ionic framework. I am newbie for angular js, HTML, CSS , Java Script and all this stuff. I have one json file which I am using as an input. I am able to parse this Json file and able to get json object from this. This json object contains array of items. You can refer below json content for this. Here items are application A,B..... Updated Input Json : { "data": [ { "applicationname": "A", "permissions": [ { "text": "at" }, { "text": "at1" } ] }, {

How to use IScroll in an Angular / TypeScript project

血红的双手。 提交于 2019-12-30 12:12:10
问题 I have an Angular ( Ionic ) application where I need momentum scrolling for desktop (running inside Electron ). One promising way of doing this may be to use IScroll, however I cannot get this to load. I have installed so I have the following in my package.json "iscroll": "^5.2.0", and also installed the typings via npm install @types/iscroll@5.2.1 First, I could not import, I get an error [ts] File 'd:/dev/capacitor/electron2/node_modules/@types/iscroll/index.d.ts' is not a module. I then

Ionic - no internet connection

泪湿孤枕 提交于 2019-12-30 11:35:08
问题 We are building a android application using Ionic (+Cordova). It all works in my browser, but when I build it and run the .apk this happens: External images won't appear, and embeded google maps remain empty. The following code at our index.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/style

ionic getting textbox value

情到浓时终转凉″ 提交于 2019-12-30 11:07:55
问题 Hi I'm new to ionic and I have the following html and js code. I am trying to get the value of user input on textbox upon clicking on the button. (If possible, I would like to store it into an object or a local cache so that it could be use throughout the same session) <ion-navbar *navbar hideBackButton> <ion-title>Welcome</ion-title> </ion-navbar> <ion-content> <ion-list> <ion-item> <ion-label floating>Please enter a nickname</ion-label> <ion-input type="text" value=""></ion-input> </ion

ionic getting textbox value

余生颓废 提交于 2019-12-30 11:07:20
问题 Hi I'm new to ionic and I have the following html and js code. I am trying to get the value of user input on textbox upon clicking on the button. (If possible, I would like to store it into an object or a local cache so that it could be use throughout the same session) <ion-navbar *navbar hideBackButton> <ion-title>Welcome</ion-title> </ion-navbar> <ion-content> <ion-list> <ion-item> <ion-label floating>Please enter a nickname</ion-label> <ion-input type="text" value=""></ion-input> </ion