ionic3

Module not found: Error: Can't resolve './app.module.ngfactory' - ionic 3, angular 5

混江龙づ霸主 提交于 2019-12-25 01:34:53
问题 After I installed ngx-translate module into the ionic app and implemented translations all over the custom pages I can't build my app anymore. When I run $ ionic cordova build browser --prod I get the following exception: Running app-scripts build: --prod --platform browser --target cordova [15:30:02] build prod started ... [15:30:02] clean started ... [15:30:02] clean finished in 3 ms [15:30:02] copy started ... [15:30:03] deeplinks started ... [15:30:03] deeplinks finished in 207 ms [15:30

Custom uses-permission with ionic 3

半城伤御伤魂 提交于 2019-12-25 01:01:25
问题 On app builds with Ionic3 (cordova 7.0.0 | android@6.2.3), I need to use microphone, SIP and internet access (WI-FI). So I try edit config.xml with edit-config in this way: <edit-config file="AndroidManifest.xml" mode="merge" targe="/manifest”> <uses-permission android:name="android.permission.USE_SIP" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.webkit

Where to add REST API consuming functionality in ionic framework 3.x?

核能气质少年 提交于 2019-12-24 22:16:37
问题 It has been a while since I used ionic framework. Last time, I used it it was version 1 and therefore, every page that i created with ionic creator had a controller for it where I used to add js code for consuming my REST framework. This time I downloaded my ionic creator app and the directory structure is completely changed. There are no js controllers like in angularJS. For each page there is a .ts file containing the following code: import { Component } from '@angular/core'; import {

INTERNAL ASSERTION FAILED: AsyncQueue is already failed

十年热恋 提交于 2019-12-24 19:29:45
问题 I have used promise inside the subscribe/observable as shown below. But it gives errors. can you tell me how to construct or design the code properly here? async loginWithGoogle(): Promise<void> { const result = await this.afAuth.auth.signInWithPopup(new firebase.auth.GoogleAuthProvider()); const userId: string = result.additionalUserInfo.profile.id; const userProfile: AngularFirestoreDocument<UserProfile> = this.fireStore.doc(`userProfile/${userId}`); const userProfiles:

ionic iOS FCM works in development mode but does not work in production

若如初见. 提交于 2019-12-24 19:28:51
问题 I'm using: Xcode10 Legacy build Phonegap-plugin-push 1.10.5 I followed https://github.com/aggarwalankush/push-notification-server (notification server) and https://github.com/aggarwalankush/ionic-push-base (ionic app) I have set up FCM using https://medium.com/@ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd. I have also set up the .p12 certificate for both production and development and have targeted the production certificate in my notification server. Once my app was

ionic serve not compiling typescript

百般思念 提交于 2019-12-24 19:19:33
问题 I started working on this project on my home PC on Windows 10 using the latest version of Ionic CLI and Typescript and ionic serve works perfectly there. However after cloning the exact same project to my work PC with Ubuntu which is also running the latest version of Ionic, I get this error when I try to use ionic serve: "www" directory cannot be found. Please make sure the working directory is an Ionic project. So obviously now on this PC it's not compiling the Typescript before running it.

Npm run ionic:build --prod error

你。 提交于 2019-12-24 19:01:56
问题 When I am trying to run npm run ionic:build --prod , it is giving me below errors: Error: Cannot determine the module for class OverlayPortal in F:/D/IONIC/quicktask/quicktask-web-froala/node_modules/ionic-angular/umd/components/app/overlay-portal.d.ts! Add OverlayPortal to the NgModule to fix it. Cannot determine the module for class IonicApp in F:/D/IONIC/quicktask/quicktask-web-froala/node_modules/ionic-angular/umd/components/app/app-root.d.ts! Add IonicApp to the NgModule to fix it.

FCM Plugin issue with ionic 3/angular 5.x

会有一股神秘感。 提交于 2019-12-24 18:36:23
问题 I am using ionic 3. I installed FCM plugin for firebase notification https://github.com/fechanique/cordova-plugin-fcm But when I am using this build fail with these error. How i can fix this. Or there is any other plugin which work perfectly. ........................................................................................... /home/himanshu/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/235767eafc5b20165cd105bbfdfd73a1/res/values/values.xml:133:5-70: AAPT: error: resource android

How can I install my ionic app on my android phone?

一个人想着一个人 提交于 2019-12-24 18:35:39
问题 I'm trying to install my ionic app on my android phone. I tried install my ionic app on my android phone The app ran on my phone, but when I ran the same command to run a different app, the app was replaced on my mobile. How can I keep both? I don't intend to modify any of these apps, they are ready. I tried these commands as well: ionic cordova build android --prod --release and ionic cordova run android --prod --release I got this error message: [ERROR] An error occurred while running

Ionic 3 WP-REST API Post request 401 (unauthorized) error

浪子不回头ぞ 提交于 2019-12-24 18:23:21
问题 I am developing a simple application to create a user in Wordpress (woocommerce) through wp-rest api. but when I try to create a new customers it shows 401 Unauthorised error in console. heres is my code for request. signup(){ let customerData = { customer : {} } customerData.customer = { "email": this.newUser.email, "first_name": this.newUser.first_name, ... "billing_address": { "first_name": this.newUser.first_name, ... }, "shipping_address": { "first_name": this.newUser.first_name, ... } }