Check this out : Open an app when clicking on a url iOS
I'd like to do the same in android. Is it possible?
Check out this two links:
Hope that will help in overcoming your problem.
Visit Launch custom android application from android browser
Visit Make a link in the Android browser start up my app?
I believe you're looking for a custom intent
The manual on intents can be found here and an example of setting up a custom one can be found here
Related
I have a question about deep-linking of Android: Do we have any ways to detect source when open our app by deep-link?. Example: When I search app in Google Chrome and then I open app by click on one of search result. Then we would have a params such as: source = "google-chrome" or source = "com.android.chrome".
I research about that but I didn't found any solution for that. Thanks for your help !!
activity.getReferrer().getAuthority
I'm trying to receive a link shared from another application like browser or youtube into my phonegap app. I'm using phonegap build (build.phonegap.com) to make my app.
I'd like to know how to make my app appear in the 'share' list for links.
All solutions I found online are making me edit Android Manifest or Java files, but is there a way (a plugin of sorts) I can use to make data transfer between apps possible?
There is a plugin available for PhoneGap which will handle receiving content from other application. You can use it. Following is the link to this plugin. https://www.npmjs.com/package/cordova-plugin-intent
If you find any issue or something else other than that functionality, you can make the custom plugin so that you will have direct access of java file from javascript.
If I understand your question correctly, you're talking about deep linking in android. The details about it can be found here
Correct me if I explain your ideas wrong: What you want to do is that you have an URL that showed up in another application (Ex: Facebook Messenger, Slack, ...) and you want after clicking it, a list of application that can be used to open that link appear and you want your app to be listed there.
But here is the problem, how can the OS knows what apps it can suggest to the end-user and what kind of link your is acceptable to your app? the answer lies in your application manifest and to be more precise, the intent-filter tag. It tells the OS what you kind of url you want and also use it to determine if the OS should suggest your app to be open by using that link for the user.
So the answer for your question about doing without editing Manifest is impossible. As for the reason why you don't want to edit your apps is unknown to me but I still suggest you to take a look at this tutorial. It still involves editing your manifest but the guide it self is clear and easy to implement.
Hope this help ^^
I am trying to use mailto link in my app but when clicking that link, I am getting a screen saying
"Webpage not available and some error", although email application
opens properly but I want to bypass that background error page.
Please note that I am using following code inside the button click:
window.open('mailto:alok1141#gmail.com?subject=Feedback: Competitive Aptitude');
Please suggest any way to avoid this background page.
Image with background error screen
My best guess is that you need to use a link <a href="mailto:..."> instead of a button or maybe use window.location=... in the onClick so that the browser can present the popup directly.
Now you tell the browser to open a window with the mailto url so only after the window has been opened it will check the url and present the popup.
There's two kind of format "mailto:" or "message/rfc822" MIME type. You have to add it on Intent with setType() If no app supports both, then it will shows the default chooser.
Have you tried setting the target to _system? It could be that your app is attempting to handle the link itself and failing. By setting the target to _system, you are asking the OS to open it for you.
window.open('mailto:alok1141#gmail.com?subject=Feedback: Competitive Aptitude', '_system');
You will also need the inappbrowser plugin. This plugin ensures that adding _system actually works. I believe on Android you may not need this, but you definitely will for iOS.
cordova plugin add cordova-plugin-inappbrowser
Thanks,
I found the solution. Actually when you run the application in phonegap app it will not open href="mailto: xyz#email.com" thats why I had to use window.open,
but once you will build the app even href="mailto: xyz#email.com" will work and best thing is it will directly open the app and no background error page will appear.
Hallo Developers,
is it possible to start a activity with a link from a Email like in Iphone SDK and start this aktivity with params.
Iphone example:
Appname:///?param1=value1¶m2=value2
It appears to be possible - check these other answers on stackoverflow:
How to implement my very own URI scheme on Android
Android Respond To URL in Intent
Not to my knowledge in stock Android. However they've made a link scheme that will open up the Market application to a specific page, so this is possible. I would think however that in order to set something like that up the app you are wanting to start from link would have to be listening for clicks on that specific type of link and tell the system that it can handle them. I have no idea how you'd go about implementing that though, and it would only be able to start specific apps that were designed that way.
Try content://com.user.package.ActivityClass/. I haven't tried it so I am not sure if it will work though.
See here for more information: http://developer.android.com/reference/android/content/Intent.html
I need to make an android App that when the user navigates to my webpage with the browser and clicks on a specific link my App activity gets launched.
I try to achieve this using Intent filters but without success. I followed some samples like Notepad and PhotoStream but nothing works for me.
The question is answered in detail at
Launch custom android application from android browser
Hope it solves your problem.
Thanks,
-A