ionic3

How to change default push notification icon to small icon in Onesignal in ionic 3?

牧云@^-^@ 提交于 2019-12-07 07:33:32
问题 I have a problem to change small icon push notification Onesignal in ionic 3, I have tried this tutorial https://documentation.onesignal.com/docs/customize-notification-icons, https://ionicframework.com/docs/native/onesignal/ and https://github.com/OneSignal/OneSignal-Cordova-SDK/issues/341#issuecomment-382648188, but fail all, small icon in my push notification still default of onesignal. This is my folder structure and my script : My folder structure : copy_android_notification_icons.js : #

Limit the length of a string using angular 2/ionic 2

老子叫甜甜 提交于 2019-12-07 05:42:26
问题 How do i restrict the phone number field to 10 characters using angular2. i tried using ng-maxlenth but it is working only in browser but not in the android devices. I found one code snippet using angular 1. But how do i rewrite the the same code using angular2? app.directive("limitTo", [function() { return { restrict: "A", link: function(scope, elem, attrs) { var limit = parseInt(attrs.limitTo); angular.element(elem).on("keypress", function(e) { if (this.value.length == limit) e

Ionic 2: Hide scroll-bar and keep scrolling

流过昼夜 提交于 2019-12-07 04:44:33
问题 I just want to hide the scrollbar, in a page that needs scrolling. I am using Ionic 2 My not working solution: .scroll-content-bar{ overflow: hidden; } This solution hide the scroll-bar but makes the screen unscrollable. 回答1: First and foremost, changing natural behavior of the browser and expected user experience is a risky move. However, if you still really really want to, I think your best bet is to fake it. In this case, setting width to 0 should be enough but I'm also changing background

How can I pass data back to my root page in Ionic 2?

。_饼干妹妹 提交于 2019-12-07 03:46:11
问题 I have an Ionic 2 app. The premise of the app is to take a class. Once a class has been opened the user is marked as taking this class in the remote API. The flow of data is: User opens 'Classes' tab. App requests 'Classes' data from API. Each class holds a 'status' for that user. User selects a class. This opens a new view in the app using NavController.push(Page, { 'classes': classObjFromApi }); . There are a few pages added to the stack, each has the classes object passed to it. On the

Angular SVG round progressbar not work for Ionic

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 00:07:15
问题 Im read and install this Angular SVG round progressbar for my ionic project , but its not working for me, https://github.com/crisbeto/angular-svg-round-progressbar how to correctly added for this my page? please help me to fix this displayed this error Error: Template parse errors: Can't bind to 'current' since it isn't a known property of 'round-progress'. 1. If 'round-progress' is an Angular component and it has 'current' input, then verify that it is part of this module. 2. If 'round

firebase social login not redirected to the app , ionic 3 , ios

风格不统一 提交于 2019-12-06 23:39:33
问题 I am trying to implement social login in my ionic 3 app with the help of 'firebase' authentication. I followed this artical https://javebratt.com/ionic-social-login-firebase/ I installed all the plugins(cordova-plugin-browsertab,cordova-plugin-inappbrowser ..etc) and did exactly same as in the article. Then I ran the app on both android and ios devices. in android device the facebook/google login page is opened in the 'in app browser' and it is redirected to the app successfully after the

Ionic 2 - Loading Controller doesn't work

蹲街弑〆低调 提交于 2019-12-06 22:30:27
问题 I am trying to use the recently added LoadingController this way : let loading=this.load.create({ content: "Connexion au serveur Migal en cours..." }); loading.present(); this.http.get(this.urlCheckerForm.value.migalUrl+'/action/MobileApp/URLChecker') .map(res => res.json()) .subscribe( data => this.newConnection(data,loading), error => this.catchURLError(loading)); loading.dismiss(); Basically, I just want to display my loading pop-in before my page is loaded, and dismiss it after. I

How to pop out ion-select using different button

前提是你 提交于 2019-12-06 19:52:23
问题 How do I pop out the ion-select using different button? <ion-select [(ngModel)]="choices" multiple="true"> <ion-option>Appliances</ion-option> <ion-option>Automobile</ion-option> <ion-option>Cellphones</ion-option> <ion-option>Clothing</ion-option> <ion-option>Computers</ion-option> <ion-option>Electronics</ion-option> <ion-option>Toys</ion-option> </ion-select> 回答1: You can ViewChild with ionic-angular html <ion-select [(ngModel)]="choices" multiple="true" #mySelect> <ion-option>Appliances<

ionic3 - Invalid App Store Icon. The App Store Icon in the asset catalog in 'YourApp.app' can't be transparent nor contain an alpha channel

廉价感情. 提交于 2019-12-06 19:18:29
问题 My ionic3 project build IOS successed, but when I upload it to itunes connect error showing then I try follow this ANSWER, but showing this for me find: convert: No such file or directory EDIT: I installed imagemagick using npm install imagemagick not brew install imagemagick then running find ./resources/ -name "*.png" -exec convert "{}" -alpha off "{}" \; showing find: convert: No such file or directory . 回答1: Error solved!! Because of my ionic3 project contains icon alpha channel problem.

Without `from` option PostCSS could generate wrong source map or do not find Browserslist config

不羁岁月 提交于 2019-12-06 18:56:58
问题 Witout from option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning ionic3 project, when I running ionic corodva bulid ios --prod showing this warning for me. ionic info cli packages: (/usr/local/lib/node_modules) @ionic/cli-utils : 1.19.0 ionic (Ionic CLI) : 3.19.0 global packages: cordova (Cordova CLI) : 7.1.0 local packages: @ionic/app-scripts : 3.1.7 Cordova Platforms : android 6.3.0 ios 4.4.0 Ionic