Adding website action link to android native share widget? - javascript

Is there a way to add a website action link to native share widget in Android without developing an app as shown below?
Android Share Action Item:
Simply need user to capture the data (url) from any app on android and post it to my url for processing without needing a new app to do this?

Related

Add button to opened app via Linking on React Native App

I have a case on react native app development :
The app opens an external app (eg. Facebook App)
When Facebook App was opened, I need to add a floating button or whatever to Facebook App, it will be used for back to my application
When that button clicked, it will trigger a function from my react native app
Is it possible ?
What I tried so far is trying to open the app inside a View with WebView and the button that I wanted, but the WebView opens www.facebook.com instead of Facebook App installed.
You can use this module to open other native apps.
https://github.com/FiberJW/react-native-app-link
but as you wanted to place a button that's not possible because if you open other apps then control is no longer available in your app to handle that button in the app which is open now, Webview will always open a web URL, not a native app.

Can you communicate to a native mobile app from mobile web browser?

I want to find a way to run native mobile app, from a web app on a browser, and communicate the result back to it.
For example, how does Facebook user authentication work on a mobile device? You go to login with Facebook on a website. If on mobile, it opens the native Facebook app to do the authentication, and redirects the user back to the mobile web browser to open some page, post-authentication. Somehow, web browser and native application are able to communicate? Is there also any security risk to this?
One way to do this is as follows:
Use a custom url to launch the app from the website (see link below)
Pass whatever parameters you need to the app (for example a return web site URL in the case of a login authentication type app)
Once the app launches and does it thing, have the app launch a browser using the return address URL you passed as a parameter to the app.
A good, well maintained, link to using custom URL's and passing partakers to the App:
http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

iOS link to standalone webapp

I am making a standalone webapp for a client, and he would be able to access to another website sometimes. So I made a link which open a tab in Safari (quit fullscreen) but then I wish I could return to the standalone app either by a link or by the address bar (without homescreen button which is locked).
Is there any way to make a link that go to a standalone web ? Or using javascript to open in fullscreen app ?
I hope Iwas clear enough, not easy to explain ^^
You can register a custom url scheme that links to your app. Basically, in your app .plist you register a scheme like "myapp", and any link that uses de protocol myapp://xxx would launch your app and pass whatever you add after the // ("xxx" in the previous example).
It's exactly like "mailto:" links, but opening your app instead of the Mail app :)
You can check how to configure your app in XCode looking at this answer: https://stackoverflow.com/a/12784399/201059
As you don't specify what platform you are using for packaging your WebApp, I can't give you further info, but if you were using Cordova/Phonegap you could install a plugin to receive the params after myapp://, so that you could go to a specific page/screen (ex: myapp://customercard?id=1234)
Update, regarding HoffZ's comment below:
When benuuts mentioned that it was a standalone webapp I understood that it was packaged with Cordova or a similar framework. If that it's not the case, unfortunately I'm not aware of any way to return to a fullscreen (pinned to the home screen) webapp.

How to open Android app from Sencha Touch Application and send some data?

I am developing a web app using sencha framework. I need to send some data from my web app to a native android app. Is there any way to do this ?
Can we initiate a broadcast from webapp, so that native android app can listen to it ?
Please let me know.
Thanks.
What you want to do is to start another application and send data to that app this is called deep-linking.
Here is a Cordova/PhoneGap plugin for doing so: https://github.com/code4jhon/LaunchMyApp-PhoneGap-Plugin
So lets say you have ToDoApp and you want to click a button and open lets say another ST app with the list of to-do tasks of ToDoApp this plugin allow you to do this. (This also applies to open native Android App (you actually start an Activity through the plugin (happy researching)))
So if you have not added Cordova or Phonegap to your ST app it is time, look at this:
http://vimeo.com/76568053
Regards

Can I create an Android view using native widgets with JavaScript?

I know that you can create an app with a WebView and attach a JavaScript interface to it, but is there a way that I can define an Android layout from the web? Perhaps even when the user is accessing my site from the Android browser, not just from a custom app?
For example, let's say I have a website with a form on it and tab navigation; could I have my site send a custom layout.xml file using Android's tabhost, buttons, and textfield views?

Categories

Resources