'APK Files served with laravel response download method getting there extension changed on Chrome Mobile

I am serving an APK file to the user to download on there mobile but somehow its extension is changed and .zip is appended to it. Below is my code:

return response()->download(public_path('/releases/' . $APKFile),'app-release.apk',['Content-Type: application/vnd.android.package-archive']);

With the above code, app-release.apk file becomes app-release.apk.zip on download when the user download it on an android device, specifically on Chrome Mobile.

But this works perfectly okay on Desktop and PCs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source