apk files don't install when downloaded from storage.s3.amazonaws.com
Hi I am wondering if there could be a fix for this? When I download my app form the storage.s3.amazonaws.com, in order to install it (the initial message is cannot open file) I have to
"go to where my files are stored on my device, (My Files, Device Storage)
Select Download, then tap the new .apk file
Then select Install
The App will installs"
Select Download, then tap the new .apk file
Then select Install
The App will installs"
This only happens with the storage.s3.amazonaws.com
The install happens fine when downloaded from anywhere else or emailed.
Thank you in advance!
Comments
but they download and open the way they are supposed to if I upload them in the "Files" area of my Shopify store (cdn.shopify.com) or email the link to the file url. But downloading them from the store as a product does not work. The download link from the store does not work."
Shopify tech:
cdn.shopify.com
this sets the content header information for .apk files which allows you to install it.I've escalated this ticket a step further, to our support developers. They'll continue investigating and get back to you as soon as they have more information on this. Thanks so much your patience while we get to the bottom of it and will be in touch as soon as possible.
The workaround solution to be able to install these .apk files from digital download links would be for customers to go to file manager and install it there."
"Our developers looked into this. We use Amazon to host our files for the digital download app. It is the browser that is causing this issue if they are unable to open the file after downloading it from our Amazon file host as it only happens with this scenario.
We cannot work around this as it is the browser's limitation for this that causes this to happen.
Please let me know if you got anymore questions regarding this."
Me: "What do you mean by browser? Do you mean Amazon's browser? I have the files as well for sale on Amazon App store and they download fine. "
SHopify Tech: "This is android's browsers. It does not recognize the file type when downloaded from a specific file host (which is Amazon) in regards to .apk files. This is why it cannot open it. You will need to go to the file browser in order to do so.
We've done extensive research into figuring out how to address this it is not able to be done for .apk files using our provider to host these digital download files.
So we do support .apk files in the sense that it can be attached to a product and customers are able to download it however, it is not able to be installed through the quick settings as it is doing it through the browser which it does not recognize. It needs to be done through the android file browser where the application will recognize this file type afterwards."
___
There you have pretty much all the info about this issue. Thanks in advance for any input.
Shopify isn't sending the correct MIME type headers for Android APK files then. You can them them it should be application/vnd.android.package-archive - they can send free beer to over here to say thanks