google chrome AddressBookUrlForwarder pop up when url link clicked - javascript

i have the user click on the icon. If the user is on a desktop they will get redirected to the webpage lets use facebook as an example. If the user clicks the icon when in mobile they will be directed to the facebook app but if they do not have it they will go to the webpage via there browser.
The mobile view is fine but on the desktop when the link is clicked this keeps popping up(in chrome).if i use a href tag it doesnt pop up. From a user experience perspective this is annoying. Is there a way to fix this.?
javascript code im using to direct them to webpage via browser or open app if they have it
function goToURL() {
setTimeout(function () { window.location = "https://www.facebook.com/page/"; }, 8000);
window.location = "fb://profile/page";
}

So i managed to get rid of the problem. I just took away the
window.location = "fb://profile/page";
On the same page I have instagram and soundcloud. For these two i just put in the url for the page and on mobile they open in the app instead on the mobile web browser. For facebook however it does not have this feature(idk why?) it opens up safari and goes to the mobile facebook website. A work around i found was to use a deep link such as URLgenius and it worked. If anyone has ran into this issue i hope it helps you out.

Related

can you Close a google appmaker app with code?

Ok so im trying to customize my google domains google waffle. I want my own google sites to appear there and thought id use google appmaker to make a clickable link for every website.
My question is then, can you create an app that opens a website then closes itself? im having trouble with the closing itself part.
I'm not sure if this is exactly what you pretend but if you want to open a link from the app and then close the app, then you can do the following:
var url = "https://google.com";
window.open(url, "_blank");
window.top.close();

Open android app from browser when page loads

I want to open my app when user goes for example:
www.example.com/myApp
open app
and if i click this link, it works,
but i want my app to be opened without click, when page loads.
I have tried:
window.onload = function () {
window.location.replace("intent://something#Intent;scheme=myapp;package=com.example.myapp;end;");
}
and
window.onload = function () {window.location.href = "intent://something#Intent;scheme=myapp;package=com.example.myapp;end;";}
even
window.onload = function(){document.getElementById("a").click();}
but none of these work.
Folks who are having the same issues on universal linking where they need to app link without user action.
we have not been able to app link without user interaction. Google chrome does block the app linking from the URL.
Hence request you all to take user interaction based approach.which is 100% valid approach for universal linking on all the device OS Android or iOS.

how to open aliexpress app in browser?

I have a link like this:
Click me
in the linkHere section, its link that comes from the back-end (in the link the redirector on aliexpress web site).
If you click on this link from mobile browser, a window will open (native), which will prompt you to open the link (in the browser or if the person has an aliexpress application, then he will offer the same).
What is the complexity. There is a timer in a few seconds, if a person has not clicked on the link I wrote above, then you also need to show the native window (by which to open the link: browser or application ali). The hours of google did not help ... Can someone come across this? Thank you!

Facebook Send To Messenger plugin doesn't redirect in-app browser

Using Facebook's mobile in-app browser to interact with a Send-To-Messenger plugin presents you a confirmation popup. However, as the in-app browser doesn't seem to support popups it simply treats it as a different page. Once you've confirmed it, you are presented with a white screen with a "1" in it, and the following URL is loaded:
https://m.facebook.com/plugins/close_popup.php?reload=https%3A%2F%2Fwww.facebook.com%2Fplugins%2Fsend_to_messenger.php%3Fapp_id%3D1764165680262750%26channel%3Dhttps%253A%252F%252Fstaticxx.facebook.com%252Fconnect%252Fxd_arbiter%252Fr%252FZ2duorNoYeF.js%253Fversion%253D42%2523cb%253Df3e4279a0da1f88%2526domain%253Dask-anything.me%2526origin%253Dhttps%25253A%25252F%25252Fask-anything.me%25252Ff25432757602a5c%2526relation%253Dparent.parent%26color%3Dblue%26container_width%3D0%26locale%3Den_US%26messenger_app_id%3D1764165680262750%26page_id%3D858456220977544%26ref%3DxngEKWwvl%26sdk%3Djoey%26size%3Dxlarge%26ret%3Doptin%26act%3Dsend%26hash%3DAQAhWlE7tO0TnuS8#_=_
The Messenger callback is triggered at this point but the user is left with a confusing white screen. Please see the following screenshots

GoogleChrome-fullscreen issue

I tried with different options for automatically making a page full screen using javascript
I tried with the window.open("index.html","","fullscreen=yes,location=no, cursor=none");
I tried with the Native FullScreen JavaScript API- It only works on a button click or any other events , but I need to make the page automatically open on fullscreen.
...I need to make the page automatically open on fullscreen
You can't, and for good reason. That's why the fullscreen API (and window.open, typically) only works in response to a user event. It's by design to prevent web pages from hijacking the user's workspace.

Categories