ionic3

Ionic3 / Ngx-translate - TranslateHttpLoader with external URL

谁说胖子不能爱 提交于 2019-12-30 07:02:43
问题 I'm loading the translation files from the server using TranslateHttpLoader in my app.module.ts like this: export function createTranslateLoader(http: Http) { return new TranslateHttpLoader(http, AppConfig.API_URL+'/static/i18n/', '.json'); } @NgModule({ ... imports: [ TranslateModule.forRoot({ loader: { provide: TranslateLoader, useFactory: (createTranslateLoader), deps: [Http] } }), ], ... }) Everything works fine, but i'm wondering if there is a way to catch event when the loader fails to

ionic 3: black screen with Android App on device

℡╲_俬逩灬. 提交于 2019-12-30 05:00:05
问题 Yesterday, I built and run my app on my Android device and this version worked fine. Since, I improved my app (content view and controller of some modules) and today, I have a black screen on device. Tests where app is OK When I execute ionic serve When I build another Ionic app (not this one) and run on device Tests where app fails on device When I execute ionic cordova run android --debug When I use the same version like yesterday When I try to rebuild a already tagged version (So qualified

Cannot read property 'navCtrl' of undefined

眉间皱痕 提交于 2019-12-29 01:40:21
问题 For hours I've been searching for a solution to this problem in my project to no avail. I've read many of the other "Cannot read property ... of undefined" posts, but can't seem to find a solution for mine. Below is the relevant code in my project. This is an Ionic 2 / Apache Cordova project and the page below is the Sign In Page for the app. It is not one of the core app components, it is simply a regular page. For some reason, the NavController is not being recognized in the onSignIn()

Ionic - White edge on iPhone X in header

陌路散爱 提交于 2019-12-29 01:32:49
问题 Loading an app on iPhone X and I have white bars on the two sides of the notch. I am using Ionic Tabs. I have tried changing the body and ion-app background colour. body, ion-app.app-root { background-color: color($colors, main); } First include viewport-fit=cover Running "cordova-plugin-statusbar": "^2.2.3" Also tried to change Statusbar background colour with <preference name="StatusBarBackgroundColor" value="#25707B" /> Don't know what is causing them. Edit: Added image of the white edge.

ionic2 ion-list with a button both having (click) event

╄→尐↘猪︶ㄣ 提交于 2019-12-28 18:50:22
问题 What I am trying to achieve is when I click on the download button it should do somthing else and when clicking on the item it should open a new window <ion-list> <ion-item *ngFor="let reading_material of reading_materials" (click)="gotoReadingMaterial(reading_material)"> {{reading_material.title}} <ion-icon item-right name="download" (click)="downloadMaterial(reading_material)"></ion-icon> </ion-item> </ion-list> But when I click on the download button, both the events gets hit. Is there a

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

好久不见. 提交于 2019-12-28 05:17:06
问题 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 回答1: I had the

Ionic 2 ionScroll event to not refresh view

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-28 04:33:07
问题 I add to the <ion-content> a ionScroll event which triggers the method foo() and in a <button ion-button> a click event which triggers foo() too. In my template I add for an example {{ x }} and the foo() method increments x . The button click refreshs the view so that the new value is shown. The scrolling not. If I add a console.log this will print. If i set the fokus to some element like a textbox or something, the view refreshs and the new value of x shows up. have someone an idea why? 回答1:

How to use angular 2 service with Ionic 2?

独自空忆成欢 提交于 2019-12-28 04:00:07
问题 I am new to Ionic 2. I read in angular 2 docs, that service needs to be injected while bootstrap application. But could not see any bootstrap thing while going through Ionic 2 tutorial. Any help is highly appreciated. 回答1: There is no use of Bootstrap() in Ionic2, only use of @App to declare your app. You still need to declare your service in your @Page component. Create your service import {Injectable} from "angular2/core"; import {Http} from "angular2/http"; @Injectable() export class

Ionic 3 IOS application crash when click on paypal

早过忘川 提交于 2019-12-26 08:28:36
问题 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 3 IOS application crash when click on paypal

≡放荡痞女 提交于 2019-12-26 08:28:11
问题 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