Install / run (not: download) APK file directly from website - android

I've seen this answer, but -- as it claims -- link starts download of .apk file, while I'm looking for any way to run it, if it is installed, directly from the web.
I found this example and TestFlight's webpage. There's a link Already Installed? Launch the App -- a simple <a> tag with href set to testflightapp://com.testflightapp.androidapp?scheme=http&host=testflightapp.com&path=m/builds.
However, it seems, that this kind of href / protocol is supported only by installed Test Flight application and not available in general in Android system.
Am I right, that my own application -- the one, that I want to run via link from website -- must itself register and handle private protocol, as in this example.

Yes, your app must have an intent-filter that responds to a particular (preferably non-standard) URI.
In the above case, the intent-filter is for testflightapp:// scheme URIs.

Related

DFL parameter in Firebase Dynamic Links Builder

I need to programmatically build a dynamic link using the Dynamic Link Builder API on Android (https://firebase.google.com/docs/dynamic-links/android/create). This is the only option applicable for my case since I need to track click data and shorten links.
This link can be opened on the desktop, but the problem is that the link will be eligible only for mobile apps - the website is unable to recognize this link (this behavior is intentional). I would like the desktop user is directed to the website's main page.
Here is the quote from Firebase doc:
When users open a Dynamic Link on a desktop web browser, they will load this URL (unless param dfl is specified). If you don't have a web equivalent to the linked content, the URL doesn't need to point to a valid web resource. In this situation, you should set up a redirect from this URL to, for example, your home page.
I see I need dfl parameter. (dfl is The link to open on desktop, overriding param link.) How can I specify dfl parameter using Dynamic Links Builder on Android?
I know that I can specify dfl by building dynamic link manually - https://firebase.google.com/docs/dynamic-links/create-manually
But this approach is not useful for me since it has such constraints:
If you don't need to track click data in the Firebase console and you don't care if the links are long...
Does anybody know the right solution or some trick to achieve this? Any thoughts/ideas would be appreciated!
Seems, that simple appending does work...
When the builder composes the Uri, I append it with &dfl=XXXXX
When I try to open this link on browser PC it directs me to URL in dfl parameter, but on the device, it opens Play Store or app (if it's installed).
The absence of such method confused me, but the solution is found.

How to integrate mirrorlink common api in android Application

friends I am new in mirrorlink common Api.I don't know to enable mirror link service in android application.Please anyone tell me steps and any tutorial link.
I already do following things :-
I get developer account from mirrorlink.com.
I attached certificate with my app(that get from software that available from https://causeway.carconnectivity.org) Documents.
I saved device EMI number in my ACMS account (https://acms.carconnectivity.org)
Now I know I missing mirror link code for launching and terminate all this code and permission in manifest file.
Actually, I don't know how to code in the application for mirrorlink. please help me for step no.4
The launch and terminate UPnP code should be placed in the MainActivity. For certification purposes, your app needs to handle the Terminate intent without coming to the foreground (if it is in the background). Even if you don't respond to the intents, the app should be usable in MirrorLink.
You don't need to do anything extra to enable framebuffer streaming, or audio streaming. (Though providing context information via IContextManager.setFramebufferContextInformation and IContextManager.setAudioContextInformation is needed to make sure that the head unit knows what is being provided to it.)

Deferred deeplink with Adjust does not work if app was not installed

I have an Adjust URI with for my app "myapp" for the method "mymethod" which calls 3 parameters: param1, param2, param3
as you can see here:
https://app.adjust.com/123abc?deep_link=myapp%3A%2F%2Fmymethod%3Fparam1%3D3.5516%26param2%3D3.5629%26param3%3D2016-10-16
If my app was already installed, everything works very fine and those 3 parameters are then aleady set on app start into the proper TextEdits already.
If my app was not installed, the Playstore is called, with the invitation to download the app. I have to press in PlayStore Open to start the app then, to start the app. But the 3 parameters were not set on startup?
EDIT: As you can see in the trailer that my deeplink is not online and the scheme has the form:
myapp://mymethod?param1=3.5516&param2=3.5629&param3=2016-10-16
Those parameters are taken over hand handed to this app. That means When I call that URI myapp starts with those paramters already set in the TextEdit's.
BUT when myapp was not installed, PlayStore is opened with myapp ready to be installed. Starting the myapp afterwards does not take over the parameters into that app (as in calling that URI with preinstalled myapp)
Is your deep link path immediately accessible after install? If there is a signup/login process that blocks access to that URI path, this could be why (Adjust docs).
Deferred deep linking is not a core part of the Adjust platform, so flexibility is somewhat limited. If you need a more comprehensive solution, you could check out Branch.io (full disclosure: I'm on the Branch team). The Branch platform gives you significantly more deferred deep linking options, and also integrates with Adjust to synchronize all your data.

Broadcasting Proof of Concept on android

I am doing an hackaton and I want to broadcast the proof of concept of my android application to the jury. The problem is : I want it super easy to install my application and I don't want to pay 25$ for launching something that will target at most 20 people.
For instance it would be great if we could provide an url, and if someone click on it, it goes to a webpage with a download button and you click on it and it install it on your smartphone. That easy !
For instance it would be great if we could provide an url, and if someone click on it, it goes to a webpage with a download button and you click on it and it install it on your smartphone.
Then do just that. So long as the Web server is set to serve up APK files with the appropriate MIME type (application/vnd.android.package-archive), and so long as the device is set to allow installation from arbitrary sources (in Settings > Security), this works just fine.

Android Play Store market:// link is no longer working?

I've been redirecting my users for the past year from my domain:
http://example.com/get
to: market://details?id=com.example.myapp
Today I've check this on Nexus 5/LG G3/OnePlus One from the chrome browser app and it stopped working!
Now, when my users try to download the app they are redirected to a broken link.
Anyone know anything about this change in the Chrome app in Android?
from reading the chrome's version 40 release, there are some insight i d like to share
http://blog.chromium.org/2014/12/chrome-40-beta-powerful-offline-and.html
they updated to Content Security Policy Level 2, which has a stronger control over redirects.
https://w3c.github.io/webappsec/specs/content-security-policy/#changes-from-level-1
The path component of a source expression is now ignored if the resource being loaded is the result of a redirect, as described in ยง4.2.2.3 Paths and Redirects.
Redirects are blocked by default, and explicitly allowed with a new unsafe-redirect expression.
So I did some testing. if your initial action started from redirect (no matter window.location or http 302) it will show an error. but once i created a hyperlink to market:// and explicitly clicked it, it worked fine.
for now i ended up creating a webpage in between, where i ask the user to click the link to proceed.
I was testing this url on different devices with different OS/Play Store/ Play Services/ Browsers. looks like it's related to browser but not OS or Play Services.
Initially I updated Play Services and Google Play Store and my old Chrome (v18) was opening market://details?id= url fine.
Afterward I had updated my Chrome (v18) to version 40. And it's not working any more.
Meanwhile, FireFox and default "Browsers" still opens this url and redirects to Google Play Store app.
P.S. I have registered issue in Chromium bug tracker. Let's see if there will be any response:
https://code.google.com/p/chromium/issues/detail?can=2&q=market&colspec=ID%20Pri%20M%20Week%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified&id=454396&thanks=454396&ts=1422888121
UPDATE [6.05.15] : Unfortunately, they decided not to fix this issue, saying, that it's planned behaviour. As they said, user should click the link by himself. Only then re-direct to the app on devices is allowed.
So, there is only one "work-around", that I see for now: create a page, that contains text like "Click link below to go to the app", followed by link like:
Load Example App
or
<a href="intent://foo.bar#Intent;scheme=blabla;package=com.example.myapp;end" > Load App/ Activate your Profile </a>
Try the link below, replacing your.app.id with your own identifier:
https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=your.app.id&ddl=1&pcampaignid=web_ddl_1

Categories

Resources