I have developed an application in which there is one URL(JSON Link): https://zappos.amazon.com/mobileapi/v1/product/asin/B00LLS8LQU
I have shared this URL in whatsApp or any other application.
I have two Queries
My Query is: When the user clicks the URL.
My Application should be shown along with browsers.
Query 2:
After clicking on my application provided by action provider.
I need to get data from this JSON URL Link? How i can achieve that?
Below is the screenshot of problem:
If I understood you correctly, learn everything described here.
Documentation
Related
Similar to this question. However, I am looking for a way to add a token to the invitation link so that an android application can read such said token and then "automatically" join that user to that particular chat room. However, I haven't found example in a repo or the docs. So how if possible can I achieve this goal? Is invitation links the best way to achieve this?
You can pass a URL to your dynamic link with setLink(url). This URL is passed to your application when/after the user has installed that and it is up to your application to call getLink() and then interpret the URL. You can see an example of handling the link in the Firebase documentation.
So if your chat room has a unique ID (if you're using the realtime database, typically that'd be the key that you use in the JSON), then you'd include that key in the link/URL.
Note that the user might also open the URL in a web browser. So it's best to ensure that it's a complete URL that resolves to a reasonable web page for the chat room. That URL would still include the key of the chat room, so that it works both on the web and in your Android app.
I just created a short dynamic link for this url https://m.example.com/invitation?gameid=1234&referrer=555.
It is working fine, but when i click the shortlink in browser it is directing to my page but it is showing all the sensitive information like gameId and referrer in browser address bar. I don't want to show that.
Is there any way to show short link even when i click the shortlink in browser also or anyway to hide the sensitive information.
Firebase Dynamic Links do not provide mechanism to hide link data from person who have access to the link. In addition to exposing the link content in browser address bar (as you already found out), any person can get link details by going to link debug page https://firebase.google.com/docs/dynamic-links/debug . Append ?d=1 or &d=1 to the link to get here.
If you need to hide information, you can consider encrypting the information, like https://m.example.com/invitation?encrypted_data=<base64 data here>
Another option is to store data in database and having only data identifier in your link, like https://m.example.com/invitation?data_id=<identifier>
If you think your use case is important or widely used, feel free to open Firebase support ticket. We always open to feature requests and suggestions how to improve our product.
Got a pretty hectic task for myself here and i'm done with googling it ..
Im presently working on an app that has to take an
input , (String )(EditText) from the user end .
Use that string and pass it on to a webview , so that the search is done based on this string , (for eg: lets take youtube as an example so the passed content is a Songs name).
Once the search has been made the app has to pickup the url of the present search made .... i.e in youtube when we search for something we get the url as
"https://www.youtube.com/watch?v=zS4F49XqLWo" so the app has to store this url .
Paste the url onto another site and then Click on some buttons on that site (The major problem part -- how do i get the app to automatically click on buttons on another site ??)
Im just a novice at Android Development , espacially at the html side of it ... so kindly bear with me !!...
I have a requirement wherein if there is any URL in text messages i.e when we are chatting using android phone and someone send me a url , then i should display the content in the URL in a small window so that he does not have to click the URL to see the content but automatically sees the content of that webpage . Any idea on how this can be implemented because when i was looking to the messaging api , it is displaying it through cursor adapter so somehow this webview needs to be stored in db . Am i on the right track . Any suggestions ?
First you need to detect that you have a URL. You can do this using a Regex.
Then, you need to write an xml layout for your View which includes a WebView. You can find basic usage and examples here: http://developer.android.com/reference/android/webkit/WebView.html.
Whether you store the messages in a db or not is up to you, depending on your needs.
I am trying to create an application in which will be notifying the user about the phishy websites.So for this i need to get the url which the user has opened in the default browser.
After a lot of google search and stackoverflow search i am not getting any idea how to develop the app.Can you guys help me ...how i could get the url entered by the user (just want the url accessed).
Or any other way round to develop this type of app in android.
Any help would be highly appreciated.
Maybe you can proceed the following way.You can read browser bookmarks.Then see the arrange pattern of the bookmarks.Maybe it is sorted according to the accessed time.So you can get what you need