Using S.browser_fallback_url in intent:// links to redirect to the app store using a market:// link - google-chrome

I am using an intent:// link to redirect users to an app, and hoping to use the S.browser_fallback_url field to redirect the users to the PlayStore if they do not have the app downloaded by setting the fallback url to be a market:// link with params added in.
Is the S.browser_fallback_url only capable of handling web links? as in, it wont work with market links?

Related

How can I make a Chrome extension make a HTTPS request to the current website and attach all the cookies and other data along with it?

I'm working on an extesion which will work of some kind of a helper. Namely, a user gets authenticated on a website as he normally would -- via a website itself.
Then he'd open my extension and click a button "Action". A click would make HTTPS request to the /api/some-method of the current domain and send along with it all the data the current browser would. In particular, all the cookies of the current domain, and, preferably, the correct user-agent too.
That is, it's as if domain123.com/api/some-method was called by the browser itself.
How can I make my extension attach all that info and make a request in such a manner?

redirect after tweet - share through twitter implementation for website

I am implementing social media share buttons in my website. Instead of popup, I like to redirect user to the social media pages for sharing. Once they share the content, possibily a redirect to my website.
I did this for facebook using url redirection method as given here
https://www.facebook.com/dialog/share?
app_id=145634995501895
&display=popup
&href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2F
&redirect_uri=https%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fexplorer
It is working fine. redirect_uri takes the user back to my website once sharing is done.
I am looking through twitter guide for similar implementation. I understand that I can do similar implementation by redirecting to https://twitter.com/intent/tweet with necessary query parameters.
But i could not find any parameter for redirecting back to my website. Is this expected or any way to implement it? Thanks.

i want name of the platform (facebook, twitter etc) from where visitor comes to our page in angular

Our web page is in Angular 6.
I will share my web page url in facebook, twitter etc.
Now i want to determine from which source visitor has landed to our page.
for eg: if a facebook user clicks our web page link and redirects to our page, t hen there should some info which shows previous url (i.e. facebook url)
You have to hope that there is a http referer header. Its more likely to work if you make custom referrer links of your own, so say your URL on facebook being 'http://your-site.com?referrer=fb` or something like it.

Create a link that can later be customized to different URL

I would like to create a link that I can customize later.
For example,
I create a href link in the footer of the website I developed for my client with the URL that forwards to my current Web design website.
In the future, if I have to change my Web design website URL I will just customize that footer link forward destination to another one without having to access the CPanel of my client's website.
Please tell me how is it possible to do. Is this possible to with any link shortener services?
The usual way to do this is to set up a redirect from your old site to your new, with a 301 status code. This is easily done with a simple configuration directive in your web server config.
I doubt if there is any link generator service that let you change the redirection link after generated.
If you will be able to access your previous url, link it with redirection page that will redirect client into your current url.
Or get a free domain that only works as redirection link.

Can an HTTPs page be reused for searching?

I have a main page that users visit via https. From that page, they can do a google search. However, the search results is displayed via http and I no longer have control over the search page. Is there a way to 'trap' the results and send it over a custom https page so the users results can be private?
Update: I guess the real question is can they browse the web through my website and since my site is https, get a private browsing session via my website.
You can make use of Google AJAX Search API to integrate search results in your own page:
http://code.google.com/apis/ajaxsearch/