ionic3

Attribute application@allowBackup value=(false) from AndroidManifest.xml is also present at [:barcodescanner:] AndroidManifest.xml value=(true)

混江龙づ霸主 提交于 2020-02-27 04:34:12
问题 I’m trying to set the allowBackup attribute in my ionic 3 app manifest to false but gradle complains with the following error: Attribute application@allowBackup value=(false) from AndroidManifest.xml:4:18-45 is also present at [:barcodescanner:] AndroidManifest.xml:12:9-35 value=(true). Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:4:5-11:19 to override. To Set allowBackup=false using below line in config.xml file <platform name="android"> <edit

Cannot find module in .spec.ts file in Ionic 3

坚强是说给别人听的谎言 提交于 2020-02-25 02:21:25
问题 I am working on Ionic 3 (Angular type) application, and to implement unit testing ,I am using Jasmine and Karma . Project structure of Ionic 3 (Angular type) doesnot provide .spec.ts file for pages/components/providers. So, I, manually, created .spec file for pages, but it is showing 'Cannot find module '@angular/core' and 'Cannot find module '@angular/core/testing' error. As these file are not able to fetch modules or not able to get the path to reach to those modules. I have tried following

ionic button activated / active

☆樱花仙子☆ 提交于 2020-02-24 10:01:09
问题 I am looking to set an ionic button's state to active, but this isn't documented at all in the API docs. As of right now, when you click the button, the "activated" class is added to the button, and then removed a few moments later. 回答1: This can be done via [ngClass]="{'activated' : YourVariableHere }" HTML: <button class="post-button" [ngClass]="{'activated' : buttonActive}"ion-button outline small icon-left"> Component code: buttonActive: boolean = true; 来源: https://stackoverflow.com

How to fix missing 'module not found' build error in Ionic 3 application

白昼怎懂夜的黑 提交于 2020-02-23 07:12:23
问题 I can't build Ionic 3 app for production with ionic cordova build android --prod --release Error received [14:06:47] ionic-app-script task: "build" [14:06:47] Error: ./src/pages/dashboard/dashboard.ngfactory.js Module not found: Error: Can't resolve '../../../node_modules/ionic3-calendar-en/src/calendar/calendar.ngfactory' in 'C:\repo\iota-mobile\src\pages\dashboard' resolve '../../../node_modules/ionic3-calendar-en/src/calendar/calendar.ngfactory' in 'C:\repo\iota-mobile\src\pages\dashboard'

Xcode Error When Added AdMob Plugin To Ionic Project

若如初见. 提交于 2020-02-19 06:47:11
问题 I have an Ionic 3 Project and its running normally on Ionic DevApp And Xcode. But When i added AdMob Plugin , its running normally Ionic DevApp but its not running on Xcode. I tried Simulator and Real Device but i have some mistake both of them. There is my error codes; Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk

Xcode Error When Added AdMob Plugin To Ionic Project

杀马特。学长 韩版系。学妹 提交于 2020-02-19 06:46:33
问题 I have an Ionic 3 Project and its running normally on Ionic DevApp And Xcode. But When i added AdMob Plugin , its running normally Ionic DevApp but its not running on Xcode. I tried Simulator and Real Device but i have some mistake both of them. There is my error codes; Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk

Xcode Error When Added AdMob Plugin To Ionic Project

冷暖自知 提交于 2020-02-19 06:46:23
问题 I have an Ionic 3 Project and its running normally on Ionic DevApp And Xcode. But When i added AdMob Plugin , its running normally Ionic DevApp but its not running on Xcode. I tried Simulator and Real Device but i have some mistake both of them. There is my error codes; Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk

Photo-library plugin crash in ios version 13

廉价感情. 提交于 2020-02-06 07:54:48
问题 Reposted: question link app crashes when the user wants to fetch images from the library in ionic 3. image picker plugin works fine in iOS 12. But after updating to iOS 13, it is crashing. it is working in iPhone X but when trying it on iPad it's getting the error which is in the link given above. can anyone help with this? Thanks in advance! 回答1: Just add property in ImagePicker options: disable_popover: true It will solve the crashing issue.But the error still would be there in logs! Happy

Photo-library plugin crash in ios version 13

a 夏天 提交于 2020-02-06 07:54:05
问题 Reposted: question link app crashes when the user wants to fetch images from the library in ionic 3. image picker plugin works fine in iOS 12. But after updating to iOS 13, it is crashing. it is working in iPhone X but when trying it on iPad it's getting the error which is in the link given above. can anyone help with this? Thanks in advance! 回答1: Just add property in ImagePicker options: disable_popover: true It will solve the crashing issue.But the error still would be there in logs! Happy

How to get selected date from ionic-2 calendar onchange() method

微笑、不失礼 提交于 2020-02-06 07:30:47
问题 I am using ion2-calendar. this is my html: <ion-calendar [(ngModel)]="date" (onChange)="onChange($event)" [type]="type" [format]="'YYYY-MM-DD'"> </ion-calendar> and this is onchange in ts: onChange($event) { console.log("onchange event called"); console.log(moment().format('DD-MM-YYYY')); } This is my console: onSelect event called 25-06-2018 But i am always getting current month and year,no matter which date I choose. Only the date value is changing. Its showing current month and year in the