web host issue, .apk files to download from android browser - android

I have been trying to get some people to test an android app and needed a friendly way to delivery it since it is not currently on the marketplace. I had uploaded it to my website and found that mostly every attempt to download failed. This was wither through the android emulator or actual devices.
I was only able to successfully download on 1 device personally and the rest of the users reported download unsuccessful/failed.
I put the file on 2 different webservers and and I was successfully able to download via android browser from the other servers.
What should I tell my primary host so I can resolve this problem?

They need to add the mine type for ".apk" to "application/vnd.android.package-archive"
I had a similar problem and fix it by adding the mime type to the site configuration in IIS. On Apache I haven't encountered the problem.

Related

Does assetlinks.json file for Android App Links have a size limit like the iOS counterpart?

In order to only allow authorized apps to open https links, Android has App Links, and iOS has Universal Links. In both, one needs to upload a file, viz. assetlinks.json for Android and apple-app-site-association file for iOS on https://domain.name/.well-known/ path. I could find that for iOS, the file size can be max 128 KB, however, couldn't find any such information for assetlinks.json. Is there a size limit for it?
Officially there is no limit mentioned any where in the document. But when I have tried using Branch.io common link in my app, the app links verification was failing when app was installed. Figured out the same from the logs and the reason for the same was read timeout.
The file hosted here is very huge and mentions a lot of apps which support Branch's bnc.lt links.
https://bnc.lt/.well-known/assetlinks.json
Which causes it to fail as Android fails to verify the same during installation and hence also causes other links configured also not to work.
A file link with just 8-10 apps won't be that huge and won't cause a problem.

ionic 4 app not working correctly on other android devices

i'm building ionic 4 app and install it on my device it works fine
but when i try to install on other devices, it looks like this
i've tried to debug this problem with chrome but everything works fine.
images and texts are from json file and not showing up, i think maybe it's because android version i use is different, anyone know what to do?
This is an error I am getting from your provided .apk file. This is a very common issue. To get data from the server your using URL http://mobile.youthscarf.id/ionic/link_data.php To avoid this error I will recommend you to use URL starts with https://. according to the new android security update we have to use certified URL. You can get free SSL for testing purposes from https://www.sslforfree.com/

Alternate ways of opening APK files on Android device?

I am trying to open up an apk to test an app in development on an old Android phone, and it doesn't open it automatically after downloading to the device (it offers to open it in Chrome or HTML editor). Is there another way to open it (through an app etc.) or might I assume because the Android device is old the apk might not open it?
I ended up using AirDroid to download the apk via my computer and it worked beautifully!

ICANN Name collision for react-native android

I have a react-native app with ios and android versions. Both versions use a webview to access a web site. The ios version works when pointed to either the production web site or local development version. The web site uses ruby on rails and the development server is pow.
When I run the android app, it loads but when it tries to access a local version of the web site, it returns the following error:
console.error: "Encountered an error loading page", {"canGoForward":false,"code":-2,"canGoBack":false,"description":"net::ERR_ICANN_NAME_COLLISION","loading":false,"title":"","url":"http://my_app.dev/,"target":69}
The same happens if I use localhost rather than the my_app.dev. It does however work when pointed to the external production url i.e my_app.com.
I have tried using a different android device, and the error changes to ERR_CONNECTION_REFUSED. The first device used the android browser whereas the second looks like it uses chrome. So it does appear to be a browser specific problem. Reading this link, I used nslookup my_app.dev to work out the ip address as 127.0.53.53 and entered
127.0.53.53 my_app.dev
into the /private/etc/hosts file. However this still gives same error. How do I fix this?
A work around for this problem is to find out the ip address of the development machine, say 192.168.0.33, configure the server to allow external access at my_app.192.168.0.33.xip.io, and then in the react app, configure the host url as http://my_app.192.168.0.33.xip.io. However this means running the server in special mode, so it would be better to find a direct answer to this question.

Move app to phone

yesterday I posted the question ‘How do I convert eclipse app for phone?’
I have used eclipse to design an android app which runs fine on the emulator and I now want to transfer it to my phone. Sixten Otto kindly offered some advice regarding how to test/debug my app on my phone straight from Eclipse's Run menu.
(See Developing on a Device from the Android developer site.)
Step 1, declare application as ‘debuggable’ – done, no problem.
Step 2, turn on USB debugging on phone – done, no problem.
Step 3, Setup your system to detect your device – been at this for
hours, still no closer to achieving. (And yes I do have the usb
driver in the Android sdk).
All I want to do is move my very simple app from my computer to my phone, for my own use only. I have Samsung Kies on my PC for file transfer and I have a load of files generated by eclipse. Surely there is a simple way of getting an app from PC to phone. Any help appreciated while I still have some hair left. Thanks.
On your Android device goto Settings/Applications and activate the checkbox "Unknown sources". Then open the folder of your Eclipse Android app project and you'll find the according apk file in the output folder.
You have then several possibilities to transfer this app to your Android powered device:
Install over Mail (simplest/fastest/minimum setup required)
Simply send the apk file to your own Gmail account to which you have also access from your mobile Android. Open it from there and the installation will automatically start.
Deploy on some publicly accessible URL
Alternatively you may have some hosting space somewhere. In such a case what you may do is to create a simple HTML page showing a "Download app" link which starts the download of your APK file (which you deployed on the server). To speed up a bit, you could use the Chrome-to-phone extension for pushing the page to your mobile, or you could create a QR code pointing to your deployed APK file and scan that from your mobile.
Although by having a FTP connection to your webspace you may be quite fast in deploying a new version of your app, this whole process is still quite tedious. Moreover it may not be granted that you have a webspace :)
Use Dropbox! (my favourite)
Personally my favorite one is to use Dropbox. It requires some setup steps, but Dropbox will be useful for a lot of other things too.
Get a Dropbox account and install it on your computer
Install Dropbox on your Android phone
Create a folder within your Dropbox folder for placing your apk file
Open Dropbox on Android and browse to the folder. Click on the apk file and the installation will start
This is nice once you have set up everything because you don't have to send emails back and forth. Moreover you have publicly accessible folders in Dropbox which allows you to share your app also with your friends (by sending the according URL).
I've taken this from a blog post I've written a couple of month ago.

Categories

Resources