ionic3

Ionic 3 IOS application crash when click on paypal

吃可爱长大的小学妹 提交于 2019-12-26 08:27:07
问题 step 1 step 2 This is the error I am getting on clicking paypal button error this app is working fine on Android. But crashing on IOS. Build by IONIC 3. How to solve this issue ? The rent button will redirect to the PayPal. Using PayPal Sandbox account. please help. thanks 2018-05-21 13:04:03.754557+0530 thegrand[665:8151] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/krishanu_mukherjee/Library/Developer/CoreSimulator/Devices/67065A2C-5E45-47EB-AAD8-5F2E8D5149F4

Ionic, error when generating production build

浪尽此生 提交于 2019-12-25 19:53:13
问题 I'm stuck with an error that I cannot solve. The error started when trying to create the build with --prod , I was fixing, updating dependencies and currently when executing ionic cordova build android --prod --verbose I get: typescript error 'ion-icon' is not a known element: 1. If 'ion-icon' is an Angular component, then verify that it is part of this module. 2. If 'ion-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this

All native cordova plugins stopped working on Ionic3

匆匆过客 提交于 2019-12-25 17:45:05
问题 The app uses some standard ionic/native plugins including callNumber, SMS, Facebook, SocialSharing, Clipboard and at some point I realised that all of them stopped working when running on the xCode simulator or an actual iOS device (haven't yet built it for android). They were working flawlessly before... I understand that it'll not be easy to figure out the cause with no code but just looking for hunches or methods to follow in the debugging since I'm new to debugging ionic apps' native

ionic3 - Didn't set nav root: invalid views to insert

耗尽温柔 提交于 2019-12-25 09:48:43
问题 When I click a button this warning coming out which I running it in my web browser. (ionic serve -l) I have <ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav> in my app.html file, is it problem? UPDATE: button image (button in slide menu - feedback button) app.html <ion-list> <ion-list-header>导航栏</ion-list-header> <button menuClose ion-item *ngFor="let p of loggedInPages" (click)="openPage(p)"> <ion-icon item-start [name]="p.icon" [color]="isActive(p)"></ion-icon> {{p

intro.js with ionic 3 angular

安稳与你 提交于 2019-12-25 09:44:31
问题 i am trying intro.js to get working with my ionic 3 angular app. the steps i did is: install: npm install intro.js --save then in my index.html i have <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.7.0/introjs.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.7.0/intro.min.js"></script> in my home.ts import introJs from 'intro.js/intro.js'; constructor() { console.log('Hello DynamicHomeComponent Component'); this.expanded = false; //

“v.context.$implicit.categories[0] is undefined” error in Ionic 3

不羁的心 提交于 2019-12-25 09:28:23
问题 I am trying to access the category slug for a product in ionic using the WordPress rest API. This seems to work fine on one page as <h3 class="product-name uppercase">{{productdetail?.categories[0].slug}}</h3> however this does not seems to work when i try implementing the same using for loop in angular on another page <div class="width50" *ngFor="let object of dataList"> <img src="{{object.images[0].src}}" width="150" (click)="navigateToPage(object.id)" /> <h3 class="product-name uppercase"

Ionic 2 saving multiple calendar events

﹥>﹥吖頭↗ 提交于 2019-12-25 08:54:45
问题 I am currently experiencing a problem with my ionic calendar in that I am able to save input events in an array, retrieve the array and display the info on console. However I am unable to utilize the array and display the array in its original list. I am a noob at ionic:-) so any help will go a long way. Here is my code so far: //where data is received from a modal and received as(data) modal.onDidDismiss(data =>{ if (data){ let eventData=data; eventData.startTime= new Date(data.startTime);

Angular 6- canvas.toDataURL('image/png') not capturing canvas background image

旧街凉风 提交于 2019-12-25 02:16:45
问题 Currently I am choosing one image from device gallery and using that picture as a background image for canvas. After I draw something I want to save the image. But whenever I am trying to save the image, canvas will get saved with transparent background. It's not taking background image source. Below is my code. I can see image on canvas but not capturing while saving canvas as an image. 1. HTML <canvas no-bounce id="canvas" (touchstart)='handleStart($event)' (touchmove)='handleMove($event)'

Ionic 3 file select and upload giving error

大兔子大兔子 提交于 2019-12-25 01:49:07
问题 when selecting image from gallary to upload, it gives error. Below is my php code and home.ts code Error is at php side or ionic ? php code <?php header('Access-Control-Allow-Origin: *'); $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['file']['name']); if (move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo "Upload and move success"; } else { echo $target_path; echo "There was an error uploading the file, please try again!"; } ?> Home.ts code

Ionic component in app.component.ts and pages

可紊 提交于 2019-12-25 01:44:53
问题 im struggeling with a custom component in ionic. I have a menu in app.html and I use lazy-loading for the pages. I try to implement the component into the menu in app.html and into some pages. But I can only implement it into app.html or pages, not in both. When I include the component only in app.module.ts the component works in app.html but if I include the component in my page template I get the following error: Uncaught (in promise): Error: Template parse errors: 'fa-icon' is not a known