ionic-framework

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

Incorrect APKs versionCode order when building multiple APKs for both 32bit and 64 bit platforms with crosswalk

白昼怎懂夜的黑 提交于 2019-12-30 04:57:07
问题 I need to build the ionic/cordova application for both 32bit (armeabi-v7a and x86) and 64bit (arm64-v8a and x86_64) platforms. I build four separate APKs using commands ionic build android --release and ionic build android --release --xwalk64bit All goes well except that the versionCode (for version set to 0.0.11) is a little off - see below The problem is that x86 and x86_64 must have higher versionCode then ARM apks. This is required because x86 devices are able to handle ARM libs but there

iOS v12 Https requests errors

拥有回忆 提交于 2019-12-30 04:51:05
问题 I noticed that https requests made from my Ionic Angular app on iOS v12 are failing respectively never reach my backend. I could confirm that my app is productive and the fact that this error only occurs on iOS >= v12 When I debug in Xcode 10 beta I get the following error {“headers”:{“normalizedNames”:{},“lazyUpdate”:null,“headers”:{}},“status”:0,“statusText”:“Unknown Error”,“url”:null,“ok”:false,“name”:“HttpErrorResponse”,“message”:“Http failure response for (unknown url): 0 Unknown Error”,

Make scrollbar visible in ionic content when using native scroll

和自甴很熟 提交于 2019-12-30 04:41:28
问题 I am using overflow-scroll = "true" to make ionic use native scrolling : <ion-content overflow-scroll = "true"> <ion-list> <ion-item ng-repeat="foo in bar"> {{foo.label}} </ion-item> </ion-list> </ion-content> This really works great (performances are really good). The only problem is that the (vertical) scrollbar disappeared. As per the documentation, I tried adding scrollbar-y="true" to ion-content , but that didn't work. I also tried adding this to my css : ::-webkit-scrollbar { -webkit

Ionic android build error : “All flavors must now belong to a named flavor dimension”

六月ゝ 毕业季﹏ 提交于 2019-12-30 04:01:14
问题 I've started a new project on my computer but I'm not able anymore to build for android When I run ionic cordova platform run android I get this error : All flavors must now belong to a named flavor dimension. 回答1: The "flavours" error will occur if you have the cordova-plugin-crosswalk-webview plugin installed in your project and you try to build with Gradle v4. However, if you want to upgrade to cordova-android@6.4.0 (e.g. to open your Cordova Android platform project in Android Studio 3 to

Ionic 2 - How to manage global variables?

微笑、不失礼 提交于 2019-12-30 00:51:09
问题 THE SITUATION : In my Ionic 2 app i have a simple login which form is contained inside the right menu. You click on the right icon in the header - will appear the menu with the login form. The login code is inside the app.component and the login view is app.html. The successful login will set a boolean global variable - loginState - to true. The aim is that every other component - importing the global variable - can know that login state. The problem is that - after a successful login I need

Execution failed for task ':CordovaLib:processDebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt

折月煮酒 提交于 2019-12-29 08:44:05
问题 I am learning how to use Ionic by doing a test application but I have had this problem for two days. I have looked for possible solutions but none has worked for me. The problem arises when I want to test my application on my android phone. When using this command ionic cordova run android and gives me the following error FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':CordovaLib:processDebugResources'. com.android.ide.common.process.ProcessException:

How to use home component data in other component?

爷,独闯天下 提交于 2019-12-29 08:26:51
问题 Below is my code, how to use (this.categoryType) in other component getCategoryDetails(){ return this.http.get('ip/ramu/api/api/…') .map((res:Response) => res.json()); } Above code I am using in webservice.ts ngOnInit() { this.wsp.getCategoryDetails().subscribe(data => { this.categoryType = data; }); } Above code I have used in home.ts, but I want use this response in other component. 回答1: Use a service to save the category. And then you can use the same service to get the categoryType

What steps do I need to take to use the Ionic Framework with trigger.io?

依然范特西╮ 提交于 2019-12-29 07:19:09
问题 I unsuccessfully searched for some documentation of how to integrate the Ionic Framework with trigger.io, but I don't see any. If anyone knows or has some, I'd love to see them. If not, I'll venture forward and post my steps here :) 回答1: Including Ionic Framework Ionic Framework provides CSS and JavaScript libraries that you would include in your HTML. There are two methods for including Ionic Framework in your trigger.io app: 1. Store the Files Locally (development/production): You can

What steps do I need to take to use the Ionic Framework with trigger.io?

痞子三分冷 提交于 2019-12-29 07:19:08
问题 I unsuccessfully searched for some documentation of how to integrate the Ionic Framework with trigger.io, but I don't see any. If anyone knows or has some, I'd love to see them. If not, I'll venture forward and post my steps here :) 回答1: Including Ionic Framework Ionic Framework provides CSS and JavaScript libraries that you would include in your HTML. There are two methods for including Ionic Framework in your trigger.io app: 1. Store the Files Locally (development/production): You can