ionic-framework

ionic framework / cordova IOS : open local file - local file path

人走茶凉 提交于 2020-01-26 04:01:06
问题 I'm trying without success to open some local files with the CordovaFileopener2 Can somebody post a sample of code on how generate a local file path? I need for example to point www/pdf/document1.pdf Thanks a lot for your help Alfonso 回答1: Hi I have uploaded a sample project for file Transfer in git hub Please have a look and reply, if you have any queries 来源: https://stackoverflow.com/questions/32072337/ionic-framework-cordova-ios-open-local-file-local-file-path

Ionic - How to detect and pass value back to original view with $ionicHistory.goBack();

谁说胖子不能爱 提交于 2020-01-25 13:09:50
问题 Using ionic, I am trying to have a use case to select from a list and return back to the original view with some value. I'ved already done most of the part except detecting it has returned to the original view and passing a value back to the original view. Here's so far what i'ved accomplished: button that goes to a list <button class="button button-block button-outline button-positive" ng-click="performselectUnit()"> Select Unit </button> this is the trigger to go to the new view with the

Angular filter by text input and checkbox

折月煮酒 提交于 2020-01-25 11:35:45
问题 I have an ng repeat that I'm successfully filtering by an input. I also have 3 checkboxes relating to the data that I want to be able to use to filter out certain results. I've tried putting all the fields in an array (in the same manner that you'd orderBy) but this doesn't appear to help. How can I achieve my desired result? My template looks like: <input ng-model="searchByName.name" type="text" placeholder="Search by name" autofocus> <ul class="list"> <li class="item item-toggle"> ATM

Ionic - OneSignal doesn't work on iOS 13.x

主宰稳场 提交于 2020-01-25 08:53:42
问题 I have a problem with my ionic 3 app and OneSignal. The app working fine on Android version and iOS version 12.x, but in iOS 13.* nothing happends. Viewing in the OneSignal Dashboard the device not registered. I also don't get the playerid in my app (calling getIds() method). app.component.ts: constructor(platform: Platform, statusBar: StatusBar, private oneSignal: OneSignal, public api: ApirestProvider, private alertCtrl: AlertController, splashScreen: SplashScreen) { platform.ready().then((

Using Searchbar to filter ion-cards in Ionic Angular

点点圈 提交于 2020-01-25 08:49:27
问题 I am trying to some data from an API. On typing the branch name in the search bar, I wish to load the ion-cards dynamically as the user starts typing in the search bar. Here's what I have done so far: HTML <ion-header> <ion-toolbar> <ion-title style="position: centre;"> Bank Search </ion-title> </ion-toolbar> </ion-header> <ion-content> <div class="ion-padding"> <ion-list> <ion-item> <ion-select placeholder="Select Bank Location" [(ngModel)]="place" (ionChange)="Retrievedata();" > <ion-select

How do I change the style of a single button inside a *ngFor in Ionic 3?

余生颓废 提交于 2020-01-25 07:55:06
问题 I am trying to change the style of the specific button I click in the *ngFor in the ion-col. Currently when I click on a button, the styles for all buttons changes at the same time. Here are my codes: <ion-col *ngFor="let item of displayRestaurant[0].seatTimeSlotAndDiscount | slice:indexStart:indexEnd; let i=index" no-padding> <button ion-button style="border-radius:100px;height:70px;width:70px;text-align:center;" (click)="clickedDiscount(item)" [ngClass]="clickedDiscountBoolean ?

Ionic native push registration format changed?

和自甴很熟 提交于 2020-01-25 07:00:05
问题 I am not sure why but it seems that the interface for push registration changed? My app follows the logic from https://ionicframework.com/docs/v3/native/push/ with pushObject.on('registration').subscribe((registration: any) => console.log('Device registered', registration)); where registration used to be of below type export interface PushDevice{ registrationId: string; registrationType: string; } but now I am getting {"registrationId":"{length=32,bytes=0x459ca46ab66f4fe790220809215176d6..

Ionic 4 Angular http get in iOS for wordpress

耗尽温柔 提交于 2020-01-25 06:59:12
问题 Basically I'm using this tutorial: https://devdactic.com/ionic-4-wordpress-client/ Everything works perfect in Android as well in release APP and in iOS as long as I use in iOS life reload. As soon as I run it in xcode I'm getting error message by get https. Any idea? I tried searching on Google, but found nothing of use. Thanks! [error] - ERROR { "headers":{ "normalizedNames":{ }, "lazyUpdate":null, "headers":{ } }, "status":0, "statusText":"Unknown Error", "url":"https://rhein-neckar-skater

Ion-Select Options Wont Refresh After Changing The Array Of Objects

大城市里の小女人 提交于 2020-01-25 06:38:17
问题 I Have 2 Ion-Selects The Second One Should Be Updated When The First One Changes I've Setup An (ngModelChange) On The First One And I Change The Array Of Elements Which Are Shown in Second One But It Wont Work Please Help <ion-item text-right> <ion-select interface="alert" [interfaceOptions]="receiveDatesOptions" [compareWith]="compareWithDates" [(ngModel)]="receiveDate" (ngModelChange)="changedReceiveDate()" [selectedText]="receiveDate.datePersian"> <ion-select-option *ngFor="let date of

Npm install not working for ionic 3, npm ERR! code Z_BUF_ERROR

一曲冷凌霜 提交于 2020-01-25 00:19:28
问题 I have issues for days. Now i try to create an ionic v3 app and every time it stops at line below. √ Preparing directory .\firstProject - done! √ Downloading and extracting blank starter - done! ? Integrate your new app with Cordova to target native iOS and Android? Yes ionic integrations enable cordova --quiet [INFO] Downloading integration cordova [INFO] Copying integrations files to project [OK] Integration cordova added! Installing dependencies may take several minutes. * IONIC DEVAPP *