ionic-framework

The message for empty list for ng-repeat always flash?

故事扮演 提交于 2020-01-06 17:59:56
问题 The following code from an ionic project supposes to display message "No record" when the events is empty. However, the message always show for half a second and then disappear even when events is not empty? How to get rid of the flash? <a ng-repeat="event in events"> .... </a> <div ng-hide="events.length"> <!-- <div ng-show="!events.length"> behaves the same --> <div ....> No record. </div> <div> Update: A testable plunker is created https://plnkr.co/edit/lchTKN6C8niAsALquHoF?p=preview, you

The message for empty list for ng-repeat always flash?

情到浓时终转凉″ 提交于 2020-01-06 17:59:55
问题 The following code from an ionic project supposes to display message "No record" when the events is empty. However, the message always show for half a second and then disappear even when events is not empty? How to get rid of the flash? <a ng-repeat="event in events"> .... </a> <div ng-hide="events.length"> <!-- <div ng-show="!events.length"> behaves the same --> <div ....> No record. </div> <div> Update: A testable plunker is created https://plnkr.co/edit/lchTKN6C8niAsALquHoF?p=preview, you

Unable to communicate to device with .local domain using android, corova-zeroconf-plugin

人走茶凉 提交于 2020-01-06 17:07:27
问题 I am having an iot device which is advertising in my network with name iotdevice.local, i am able to send http requests to this domain in my windows pc after installing Bonjour. But i am developing an ionic app from which i'll be communicating frequently with this device. So i am using cordova-zeroconf-plugin. (https://www.npmjs.com/package/cordova-plugin-zeroconf). I am seeing the services when i add watch for .local services. but my requestis faield when i use iotdevice.local in $http

Unable to communicate to device with .local domain using android, corova-zeroconf-plugin

喜夏-厌秋 提交于 2020-01-06 17:04:37
问题 I am having an iot device which is advertising in my network with name iotdevice.local, i am able to send http requests to this domain in my windows pc after installing Bonjour. But i am developing an ionic app from which i'll be communicating frequently with this device. So i am using cordova-zeroconf-plugin. (https://www.npmjs.com/package/cordova-plugin-zeroconf). I am seeing the services when i add watch for .local services. but my requestis faield when i use iotdevice.local in $http

Cordova: Can not get the request parameters values at server side using $_POST

我只是一个虾纸丫 提交于 2020-01-06 14:52:28
问题 I am developing mobile application for one of my webapp whose all the data resides on server. On post request data will be sent in response in JSON format. I am doing a post request as follows: $http.defaults.headers.post['Content-Type'] ='application/x-www-form-urlencoded'; $http.post(base_url+"get/memberLogin.php", {'username':userName, 'password':passWord, 'tempKey':'XHJJUQWERgfrbbbbokaw1222344'}... the data is getting sent in post request as that of i can see in the firebug of firefox

Ionic 4 simple tab in blank project

点点圈 提交于 2020-01-06 14:50:33
问题 I have create a new project with ionic start myApp blank Now i need to add tab in to the project i have create folder tabs in pages and create two file inside tabs tabs.html tabs.ts in tabs.html <ion-tabs> <ion-tab [root]="homePage" tabTitle="Home" tabIcon="bulb" ></ion-tab> <ion-tab [root]="reclamationsPage" tabTitle="Reclamations" tabIcon="settings"></ion-tab> </ion-tabs> in tabs.ts import { Component } from '@angular/core'; import { ReclamationsPage } from '../reclamations/reclamations';

onAuthStateChanged returns null when the verification mail is sent form ionic app where as in angular the same setup works

浪子不回头ぞ 提交于 2020-01-06 12:29:10
问题 I have an email verification page in angular and the sign up page in ionic app. When I create a user from angular, everything works well but when I sign up a user from ionic application onAuthStateChanged, it doesn't return any user. Stuck here for a long time guys help me out To send the verification email I am using AngularFireAuth.auth.currentUser.sendEmailVerification() this signup process is done in the ionic app. The action link which I specified in firebase is a route in angular site

Can not build ionic version 1 from Ionic Cli 4.1.2

耗尽温柔 提交于 2020-01-06 11:14:31
问题 I have an old Ionic version 1 project, and a Windows 7 machine which was formatted. After installing Ionic Cli 4.1.2, I tried to build this Ionic version 1, project but it gives me the error message: Cannot run sass task: missing in gulpfile.js Full error message: ionic-v1 build [15:26:57] Cannot load gulp: Error: Error in module: .\gulpfile.js: Error: Cannot find module ‘internal/util/types’ at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at

Problem with the UploadTask from putString()

只愿长相守 提交于 2020-01-06 08:47:26
问题 I am having problems with the UploadTask from Firebase Storage. I am trying to upload an image and then saving the image URL on Firestore Cloud. To do so I have this code: newuploadImage() { this.image = 'movie-' + new Date().getTime() + '.jpg'; let storageRef: any, parseUpload: any; storageRef = firebase.storage().ref('imgs/' + this.image); parseUpload = storageRef.putString(this.cameraImage, 'data_url') parseUpload.on('state_changed', function (snapshot) { }, function (error) { }, function

Ionic Android Build - com.google.android.gms:play-services-measurement-base Error

吃可爱长大的小学妹 提交于 2020-01-06 08:45:08
问题 My error: :app:preReleaseBuild FAILED FAILURE: Build failed with an exception. * What went wrong: The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. I reinstalled the npm and cordova plugins for Firebase, I deleted the node-modules, the plugins and everything but the issue is still