ionic-framework

ionic 3 / node.js - Self signed certificate in certificate chain (how to disable strict-ssl?)

╄→гoц情女王★ 提交于 2020-03-21 12:09:54
问题 I cannot create a ionic project with ionic start because of following error: Error: self signed certificate in certificate chain at TLSSocket.<anonymous> (_tls_wrap.js:1103:38) at emitNone (events.js:106:13) at TLSSocket.emit (events.js:208:7) at TLSSocket._finishInit (_tls_wrap.js:637:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38) on cmd: ionic start myApp tabs Because our proxy sends a self-signed signature for all sites. (FortiGate of FortiNet) In npm I set strict-ssl to false and

Difference between Ionic Storage and Native Storage?

若如初见. 提交于 2020-03-18 12:27:11
问题 I'm Actually using Ionic Storage. and I heard About The Ionic Native Storage I Don't Know the Exact Difference Between Them. Which One Is Preferred to use? Which is the Best Choice? Thank You!, 回答1: They have basically the same purpose and both work with key/value to store items, but i think Ionic Storage is better and i'll tell why. The Native Storage need and will only work with the plugin instaled, so if there's no plugin or if it's a webapp the user can't use the storage. It's intended to

Android White Background when keyboard fades away

柔情痞子 提交于 2020-03-18 03:15:52
问题 Video of the problem from a different user but its the same http://imgur.com/ca2cNZv I have a background image set as follows : .pane { background-image: url("../img/inner-banner-bg.jpg"); background-repeat: repeat; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; } And in my config.xml <preference name="Fullscreen" value="false"/> Now the problem I am having is when the keyboard fades away after I hit done / search, it leaves a white background for like 0

simple update with PHP and angularJS

廉价感情. 提交于 2020-03-16 10:16:07
问题 I want to update Num of $code , using PHP and AngularJS; but it updates only the last ng-repeat value, and not the clicked one. HTML: <ion-content class="padding" ng-controller="AdminCtrl" ng-repeat="x in names| filter: {Num: thisX}:true"> <ion-list ng-repeat="x in names| filter: {Num: thisX}:true"> <ion-item> <div class="item item-divider center-text" ng-model='x.Code'> {{x.Code}} </div> <ion-item> <b>Date</b> <span class="item-note"> {{x.Date}} </span> </ion-item> <a class="button button

simple update with PHP and angularJS

南楼画角 提交于 2020-03-16 10:13:03
问题 I want to update Num of $code , using PHP and AngularJS; but it updates only the last ng-repeat value, and not the clicked one. HTML: <ion-content class="padding" ng-controller="AdminCtrl" ng-repeat="x in names| filter: {Num: thisX}:true"> <ion-list ng-repeat="x in names| filter: {Num: thisX}:true"> <ion-item> <div class="item item-divider center-text" ng-model='x.Code'> {{x.Code}} </div> <ion-item> <b>Date</b> <span class="item-note"> {{x.Date}} </span> </ion-item> <a class="button button

Error: Cannot find module '../lib/utils/unsupported.js' while using Ionic

纵饮孤独 提交于 2020-03-12 06:47:05
问题 I always get this error message when I run "Ionic start project name": Error message Running command - failed![ERROR] An error occurred while running npm install (exit code 1): module.js:471 throw err; ^ Error: Cannot find module '../lib/utils/unsupported.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21 at

Angular Auth Guard with Subscribe

谁说胖子不能爱 提交于 2020-03-05 06:05:43
问题 I have an auth guard and need to run an api call to see if they have access. I don't believe it's possible to return data from a subscribe but how else would I do this? I need to get the userid and then call the api and then return either true of false depending on the api call. import { Injectable } from '@angular/core'; import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthService } from 'src/app

Camera Plugin not opening camera in Ionic 4

和自甴很熟 提交于 2020-03-05 04:36:09
问题 I am working on a project in Ionic 4. I would like user to upload picture by capturing from camera or uploading from library. For now I am running in development mode. The problem is that I am not being able to open camera or photo library on device in debugging mode. However the camera is opening when I run on "DEVAPP". I have tried taking permission but nothing is working out. Here is my code, tried many ways therefore code is a bit scattered: async selectImage() { try { const actionSheet =

Ionic Cordova SQLite plugin Windows “Cannot open include file: 'winapifamily.h': No such file or directory ”

狂风中的少年 提交于 2020-03-05 04:21:25
问题 I recently updated my Visual Studio to Visual Studio 2019 (from 2017), and this may be the cause of the problem I am about to describe. Now, when I attempt to build by Ionic project for Windows, I get the error.. c:\program files (x86)\windows kits\10\include\10.0.15063.0\ucrt\corecrt.h(196): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory [D:\dev\myapp\plugins\cordova-sqlite-storage\src\windows\SQLite3-WinRT-sync\SQLite3\SQLite3.UWP.vcxproj] c:

How to lazy load modals in ionic4

不打扰是莪最后的温柔 提交于 2020-03-05 02:51:07
问题 I need some help with lazy loading of modals in ionic 4. I googled a lot but can't find an exact solution. I have several modals on a page. And I want to lazy load them. Following is the example of two modals on a page In one of my modal, I need AndroidPermissions , so I have to import it in the module file of the page because importing in the module file of the modal is not working. Why this is happening? Can ionic modals not be lazy-loaded? Thank you in advance home.module.ts import {