question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic App Fails to Install when downloaded from App Store on Android 7.1.1

See original GitHub issue

Ionic version: (check one with “x”) [x ] 2.x

I’m submitting a … [x ] bug report

Current behavior: Ionic 2 app fails to install with Error -504 when downloaded on device Android 7.1.1, whereas its working perfectly on other versions of Android.

Cordova version: 6.4.0 Ionic version: 2.1.17 Android Platform version: 6.1.0

Steps to reproduce

ionic start myApp blank --v2 --id com.mydomain

ionic platform add android@6.1.0

ionic build android --prod --release

Sign and zipalign

zipalign -v -p 4 android-release.apk myapp-release.apk

Submit to Play Store

Download on a device with Android 7.x.x

I tested it on 2 Nexus 6p devices and Nexus 5x.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
naveedahmed1commented, Dec 29, 2016

@jgw96 though you have closed the issue. I would really appreciate if you could please just share some information. I am following this post to automatically sign my apk. https://baxeico.wordpress.com/2015/05/20/how-to-automatically-sign-your-android-apk-using-ionic-framework-and-crosswalk/ After that I use zip align tool to optimize the APK. As per the docs (https://developer.android.com/studio/command-line/zipalign.html) it really matters when the zipalign is perform whether before signing or after signing apk. And that depends on the signing tool using to sign. For apksigner, zipalign must only be performed before the APK file has been signed. For jarsigner, zipalign must only be performed after the APK file has been signed.

Can you please share, does automatic apk signing process described in above post also perform zipalign? If not can you please guide which apk signing tool is use in case of automatic signing apk signer or jarsigner.

1reaction
jgw96commented, Dec 29, 2016

Thanks for posting! Unfortunately this is not an Ionic issue but instead a support question regarding distributing apps on google play. I would recommend going to our forum and asking around on there. There are a bunch of awesome devs on our forum who will be able to help you. Thanks for using Ionic!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic App Fails to Install when downloaded from App Store on ...
Current behavior: Ionic 2 app fails to install with Error -504 when downloaded on device Android 7.1.1, whereas its working perfectly on other ......
Read more >
Unable to build android in IONIC 6 - Stack Overflow
hi I downloaded the zip. I put the zip without unpacking in C:\ionic5\test1\platforms\android\gradle the environment variable (system variable) ...
Read more >
"myApp has stopped" after try to open in Android - Ionic Forum
Does someone know help me why my apk is generated, installed into Android, but after clicked on app appears the message “myApp has...
Read more >
Unable to build an ionic 3 app in … | Apple Developer Forums
Hi,. I'm unable to to build an ionic 3 app in xcode using phonegap-plugin-push - err: library not found for -lGoogleToolboxForMac.
Read more >
Migrating to Cordova-Android 11 - Ionic
Cordova users need to update to cordova-android v11 in order to support these new Play Store requirements. There are some breaking changes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found