ionic3

Automatic signing is unable to resolve an issue with the “projectName” target's entitlements file

廉价感情. 提交于 2019-11-28 07:22:09
I am new to mac and i am getting this error as below What should i do i have bought the developer licence and i created the provisioning certificate but still i am facing this issue. i am not sure why i am getting this error any help. i have followed this youtube link inorder to create a provisioning profile and distrubution profile https://www.youtube.com/watch?v=Xh2nnjttOwo&t=367s UPDATE after updateing my buildsettings like this below and i am getting new error like this Alexis_Ni I had the same problem in a project that i used push notifications what i did to fix it is : Target->

Ionic slides - dynamically add slides before and after

耗尽温柔 提交于 2019-11-28 05:45:31
问题 Hi I'm using ngFor to create an set of 3 slides while starting in the middle so I'm guaranteed to be able to slide to left or right on start. When I slide right I can simple listen to the reachedEnd and push another slide to the array i'm looping. but I have a problem with adding a slide to the beginning. If I do the same as above and use e.g. array.unshift() or spread to add an item to the beginning, the view think it's on position 0 and snaps the view to the new slide. The code below would

Type HTTPOriginal is not assignable to type Provider, ionic error after plugin installation

邮差的信 提交于 2019-11-28 04:13:21
问题 After i install the cordova-plugin-advanced-http plugin, when i try to import it on providers in app.modules.ts, i get the following: I have reinstalled, clean cache, and it keeps happening. Here's the app.module.ts code: import { HTTP } from '@ionic-native/http'; import { GalleryPageModule } from './../pages/gallery/gallery.module'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import { BrowserModule } from '@angular/platform-browser'; import { ErrorHandler, NgModule }

ionic3 multiple swiper sliders on samepage

≡放荡痞女 提交于 2019-11-28 04:05:30
问题 I am using ionic 3 while placing 3 swiper sliders on same page i am unable to control their behavior separately i am bit new for angular js as well ts and ionic here is code <ion-slides style="height: 30%;" pager> <ion-slide style="background-color: green" *ngFor="let post of posts"> <h1>{{post.title}}</h1> <img [src]="post.image" /> </ion-slide> </ion-slides> <ion-slides style="height: 30%;" pager> <ion-slide style="background-color: green" *ngFor="let post of posts"> <h1>{{post.title}}</h1>

Searchbar with filter and from JSON data with Ionic 2

前提是你 提交于 2019-11-28 04:02:04
问题 I'm very new to Typescript and Ionic 2 and I'm trying to filter trough a json response with Ionic 2 search bar. This is my code: import {Component} from '@angular/core'; import {NavController} from 'ionic-angular'; import {Http} from '@angular/http'; import 'rxjs/add/operator/map'; @Component({ templateUrl: 'build/pages/home/home.html' }) export class HomePage { posts: any; private searchQuery: string = ''; private items: string[]; constructor(private http: Http) { this.initializeItems();

Ionic ios build fails, error archive not found

偶尔善良 提交于 2019-11-28 03:39:30
I've been trying to figure this out, but there doesn't seem to be any light at the end of the tunnel, thus trying it here...hope you can help. I have an Ionic project. Running via ionic serve gives me the result I expect, no problem there. However, when running a command like ionic cordova run ios -lc , I receive an error breaking the build process. The error I receive is the following: [cordova] error: archive not found at path '/Users/path-to-app/platforms/ios/demoapp.xcarchive' [cordova] ** EXPORT FAILED ** [cordova] [cordova] (node:5866) UnhandledPromiseRejectionWarning: Unhandled promise

Ionic and Firebase - InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'

为君一笑 提交于 2019-11-28 03:24:43
问题 I am having issue getting a basic CRUD to-do list app using Ionic 3 and Firebase to work. The error message I am stuck on is: Uncaught (in promise): Error: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe' The error message started when I added the <ion-item *ngFor="let item of shoppingListRef$ | async"> section to shopping-list.html: shopping-list.html <ion-header> <ion-navbar color="primary"> <ion-title>Shopping List</ion-title> <ion-buttons end> <button ion-button icon-only

Router Data Resolver / Loading Indicator from Angular 4? Can it be replicated in Ionic 3

戏子无情 提交于 2019-11-28 01:41:17
I've seen in Angular 4 you use a Router Data Resolver, and have a loading indicator, so you don't get flakey repainting of screen when all the data hasn't loaded. See relevant partial code snippets below: What is the Ionic 3 way of doing this? I'm trying to use a Data Table from PrimeNg in my app, and the pagination tab first renders one then moments later switches to the first page load. So I'd like to do something akin to what I've seen in Angular... app.module.ts import {RouterModule} from '@angular/router'; import {routerConfig} from "./router.config"; @NgModule({ imports: [ RouterModule

How to write custom components in Ionic 2/3 without losing prepared css?

∥☆過路亽.° 提交于 2019-11-28 01:18:05
问题 When I write my own custom component like this: import { Component } from '@angular/core'; @Component({ selector: 'deletableItem', template: ` <ion-checkbox item-right></ion-checkbox> ` }) export class DeletableItem { constructor() {} } And use it in some html view: <ion-content padding> <ion-list> <ion-item *ngFor="let bill of bills" (click)="openEdit(bill)"> <ion-label text-left>{{bill.name}}</ion-label> <deletableItem></deletableItem> </ion-item> </ion-list> </ion-content> The looking of

global function in Ionic 2 / Angular 2

别等时光非礼了梦想. 提交于 2019-11-27 21:47:54
问题 How can I setup a global function that can be accessed throughout all views? In app.component.ts I added a simple method openShare() {console.log("button clicked")} and then in my nav I have <button ion-button right (click)="openShare()"> <ion-icon name="md-share"></ion-icon> </button> When I try to access this from any page I get the following. self.context.openShare is not a function It does however execute fine if I put it directly in the constructor (e.g this.openShare(); ), but when