ionic 2 - white screen in android 7 and 7.1 - ionic2

I create ionic 2 app and test in genymotion with 4 device :
add min and target sdk version :
<preference name="android-minSdkVersion" value="18" />
<preference name="android-targetSdkVersion" value="25" />
update ionic and cordova and android to last version and after build android
worked :
samsung galaxy s6 - 5.0.0 - API 21
samsung galaxy s6 - 6.0.0 - API 23
not working and see white screen
samsung galaxy s8 - 7.0.0 - API 24
samsung galaxy s6 - 7.1.0 - API 25

Related

I was trying to test the FocusState and got the error that it is only available in iOS 15 or later. the iPhone 12 Pro simulator shows iOS 15.0

I downloaded the beta version of Xcode 13 and tried a build which failed with the following error. 'FocusState' is only available in iOS 15.0 or newer'
trying to figure out if I missed something and did not download everything.
It's due to the fact that the app template sets Target Deployment to iOS 14. To solve it, select the app target and select iOS 15.0 in the Deployment Info section.

upgrading rails 4 to rails 6 - directly or step by step?

I want to upgrade the rails 4 app to rails 6 latest version. To do so, should I upgrade directly from 4 to 6 or have to do step by step ?
First Rails 4 to Rails 5, then 5.0 to 5.2, then 5.2 to 6.0, then 6.0 to latest version ?
Current Rails version - 4.2, Ruby - 2.3.6
And what version is best suitable for Rails 5.0 & Rails 5.2 ?
For Rails 5.0 and 5.2, you could go for Ruby 2.7 or 3.0 version.
If you want to upgrade your rails app from rails 4 to rails 6, then I would suggest you to create a new rails 6 app and migrate all your files. Because in Rails 6 there are a lot of new changes like webpacker, new Javascript file structure etc.

AWS Elastic Search Upgrade 2.3 to 5.5 illegal_argument_exception

We recently upgraded from aws Elasticsearch service 2.3 to 5.5 and in the 5.5 version the pre-signed urls are not working (working for 2.3).
illegal_argument_exception is raised with the following message:
unrecognized parameters: [X-Amz-Algorithm], [X-Amz-Credential], [X-Amz-Date], [X-Amz-Expires], [X-Amz-Signature], [X-Amz-SignedHeaders].

Ionic 2 Android Build Prod Warning while verifying jar signing

I am getting an error while building my Ionic application, it occurs on a new app (which I started from the scratch couple of days ago). None of my old apps have this issue. The issue does not occur in any of older apps i.e., apps that are 4-5 months old.
WARNING: META-INF/android.arch.lifecycle_runtime.version not protected by signature. Unauthorized modifications to this JAR entry
will not be detected. Delete or move the entry outside of META-INF/.
and it continues for 4-5 more files.
My environment 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.6
Cordova Platforms : android 6.3.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.9.1
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Is this of any security concern or am I missing something?
Thanks in advance.
[TEMP FIX]: As all the file contains are version nos, for now I have removed those META files from my final apk before verification e.g., used
sudo zip -d apkfilename.apk META-INF/android.arch.lifecycle_runtime
did the same for the rest of the six files!

Ionic 2 app takes too much time to load even build with --prod flag

Well, I am new to ionic 2 and build my first app having 2 pages and 2 services which are the very simple and for a news website.
The problem is, first I build my app for android using --release flag the file size was near 4MB and when I deploy on my mobile the load time was 14 - 17 seconds.
Then I search for 2 days to fix this issue and came up with the idea that I should enable production mode in main.ts and build using --prod flag . Now file size is 2.65MB and load time is 8 - 11 seconds which I think too much time for a mobile device. :(
My system information is:
ordova CLI: 6.5.0
Ionic Framework Version: 3.2.0
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.10.0
Xcode version: Not installed
In my app I simply pulling news from rest server and displaying on my page. Am I doing something wrong or is there any issue with new version of ionic? I also read by some people that ionic 1 speed was good than the latest version.
Note: I run my app on 3 different devices the issue remain the same.
Check your config.xml, and set SplashScreenDelay value to zero
<preference name="SplashScreenDelay" value="0"/>.
For me, below command worked:
ionic cordova build ios --prod --aot --minifyjs --minifycss --optimizejs
You can use your own platform in above command instead of ios.
It decreased app load time in my case.
Please find more details here https://forum.ionicframework.com/t/ionic-app-takes-too-long-to-start/97546