open-in-app | Android app that makes Facebook
kandi X-RAY | open-in-app Summary
kandi X-RAY | open-in-app Summary
ever click on a link to facebook, twitter, or anywhere else, and it opens in the browser instead of the native app? me too. no fun. this app intercepts those links and sends them to their native app. (see the [play store listing] and [blog post announcement] to use, after you click on link, select open link in app from the chooser dialog box. if you don’t see the dialog box on a link that you think should work, go to settings ⇒ apps ⇒ browser or chrome ⇒ clear defaults. i’m not actively working on this right now, but if you’re technical, it’s pretty straightforward to add a new app, and i happily accept pull requests. license: this project is placed in the public domain. related work === [tasomaniac] [open link with…] is similar, but only works when you explicitly share a url. [intrications] [browser intercept - share url] lets you share a text url instead of opening it in a browser. this app is heavily data-driven. the external apps to integrate with are defined in apps.yaml. generate_manifest.py uses that file at compile time to generate androidmanifest.xml, and the app reads it at runtime to determine how to handle and redirect
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the intent
- Give up an arbitrary app
- Sets the intent to send to the Intent
open-in-app Key Features
open-in-app Examples and Code Snippets
Community Discussions
Trending Discussions on open-in-app
QUESTION
I've used Android App Studio's App Links Assistant to map my URL to MainActivity.kt
, and I can click a link in an email to open my app in the simulator.
The URL mapping when declared exactly, e.g. https://myorg.com/open-in-app
, opens the app as desired.
If I pass my email through an email service that implements link wrapping with HTTPS, I have to use a subdomain. So, for example wrapped link can look like
https://track.myorg.com/open-in-app/xyzzy
In iOS / Xcode, I can set up multiple domain associations for a given app, with wildcards for subdomains as described here. iOS fetches the apple-app-site-association
file from the subdomain's, or the organizational domain's /.well-known
path. Apple recommends the org domain in the first instance here, which is handy for supporting the same app on multiple subdomains.
Note: It's possible to host the assetlinks.json
file on the subdomain, but it's a bit more complex to do this (e.g. using a CDN). https://track.myorg.com
usually maps to the email service, which returns a redirect to the landing page. For everyone not using the app, the link will open in their browser.
In Android, is there an equivalent, i.e. host the assetlinks.json
file in one place - on the org domain - and still deep link to URLs with subdomains?
ANSWER
Answered 2020-Oct-27 at 18:40Testing on the Android Studio simulator, device Pixel 2, Android API level 30.
assetlinks.json
file can be picked up from the organizational domain of a link, or from the actual (sub-domain) of a link.
The sub-domain also works via a 301 redirect, which is necessary for some CDNs such as CloudFlare. Others (such as AWS CloudFront) can host the files directly.
See also: this article
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install open-in-app
You can use open-in-app like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the open-in-app component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page