I've spent few hours trying to get my deep links to work. The only issue that I still have is that it won't work if the link is opened from the domain that is supposed to be handled by the app but it works fine if the link that is clicked from any other website.
For example:
The link which should open the app: https://example34.com/test.
If I click on a link on Github it'll work.
If I open https://example34.com/ and then click on the link from there it will open this in the browser instead of the app...
What am I doing wrong?
Short answer: This is the expected behavior.
When using Applinks, Chrome will always defer to directing users on the same domain to the web instead of deep linking to the native app. The only way to open the application is to trigger a URI scheme when the user is routing within the same domain. I suggest using Branch to guarantee that your links work in all of these cases.
Related
I am having below error while using google colab on google chrome. It started coming up suddenly
Error
Could not load the JavaScript files needed to display output.
This is probably because your Google Account login access has expired or because third-party cookies are not allowed by your browser.
Please reload this page.
I followed instructions from here using this page as some settings have changed. I have added [*.]googleusercontent.com in the section Sites that can always use cookies using the below instructions
On your computer, open Chrome.
At the top right, click More More and
then Settings.
Click Privacy and security and then Cookies and other
site data.
Next to "Sites that can always use cookies," "Always
clear cookies when windows are closed," or "Sites that never use
cookies," click Add.
Apart from that I have tried below steps:
The google chrome>>incognito mode and firefox browser runs fine.
I have already restarted my machine and cleared my cookies.
My javascripts seem to be enable as they are on the setting Sites can use Javascript
My google account is fully functional and not facing any issues with gmail or any other site
How could I resolve this issue?
Do you have too many cells open on your Colab that aren’t needed? Start a new notebook with just the cells you need or get rid of them.
Solution1: Disconnect your collab runtime and Restart your browser.
Solution2: Clearing cookies of last 24hours (and restarting the system) fixed the issue.
If anyone find any better approach, let me know.
There is an issue opened already https://github.com/googlecolab/colabtools/issues/757
I want to be able to use Java to tell it to go to X url when X browser is open/running (my lingo is terrible). (Firefox/Chrome/IE is already up, and I want it to go from the default page to let's say Twitter.)
Most of the solutions are using java.awt.Desktop to launch native browser with a url in it, but that isn't useful if I want to change the url later on. (Already on Twitter-Home Page, but want to go to Twitter-Contact Us afterwards.)
The other solutions I've seen involve using Selenium WebDriver, but I also need to eventually learn how to basically force the Java to read a long list of URLs off an excel and simply verify that url isn't dead, and then do this on the Native Android browser, for example. So the Selenium might not be the right choice. Granted, you can also tell me this is an awesome choice for this too if it truly is. I haven't really been exploring Selenium.
Sorry for asking such a basic question. Company wants QA Automation without training/hiring an Automation QA. My end goal (aside not getting canned), is to see if I can get a bunch of urls to load on specific browsers. I can sort of (praying) be able to do stuff with it afterwards.
A simple trick would be to create an add-on( if you know javascript ) which will be quite similar in chrome and firefox (for IE I have no idea in my days it needed BHO) and send websocket commands from java to your addon. But this needs a java websocket server running where your addon will connect when the browser opens. Rest of communication can be carried upon the protocol lines of your requirements.
There are multiple parts to your question.
Read urls from excel.
Use Apache POI to do the same. Selenium code can use the same.
Check that the urls are not dead.
Use any java http client, (apache) to do that without even opening a browser. If the link is dead, it will be dead for all the browser.
Open the links in a multiple browsers.
Selenium is perfect for this. I am assuming that after the page is loaded you have way of validating that the page is correct. Selenium is very powerful here.
Target native android browser too.
I do not know of much difference between this and the previous question unless you are also testing site display based on browser size. The browser is more or less the same as chrome with webkit rendering engine.
I have an issue with my automation (selenium-webdriver). Every time I click on a link, that link would open in a new tab (this is not expected, and links do not have _blank attr. set to them), my automation fails cause it stays on the first tab.
I've tried setting up a new automation env on a new PC - same result. I've tried releasing Ctrl key using :controlKeyUp - same result
This issue happened during bug-fixes merge from v1 to v2 of my product.
P.S.:
On a version with older code automation works fine with no issues
This issue is not reproducible manually.
I will explain how we dealt with the issue.
We've implemented Google Analytics event tracking on our site, so it would check every link to see if it is an external one. A reg-ex for that was written to check links, but it did not incorporate the way I was bypassing basic authentication "http://LOGIN:PASSWORD#yoursite.com". Therefore GA thought every link was an external one and GA injected its .js with "_blank" attribute.
I am developing both an eclipse plug in and a website. I want this two to interact with each other. The case is the following.
I have an eclipse plug in and I am using the org.eclipse.ui.browser.IWorkbenchBrowserSupport to open an internal browser and point it to a specific url. User can interact with my website from the eclipse internal browser without a problem.
The next thing I want to achieve is if a user clicks on a specific HTML element in my website (through the internal browser) to trigger an event or something and pass information from the internal browser to my plugin. This information can be something like : an element was clicked with properties a,b and c.
You can think it as something similar with the mailto: directive, when clicking that directive the mail client launches.
Any ideas on how i can achieve that? Any insights to point me to the right direction?
I have found this (Create an Eclipse plugin that responds to links in the internal web browser) similar question which is 2 years old.
I am truly struggling with this - i have checked all of the other Stack overflow pages and while this may seem like a duplicate question there are NO other answers I can find anywhere besides potentially using multiple modules (even though this does not seem correct)
All i want to do is have a set of static pages making up a website for my main page, the Login page (i plan to use RequestFactory to pull back the user permissions to display stuff for the app from here - somebody suggested in another post such as this to do it from a "Non-GWT" page - that doesn't sound correct to me), and then when the user logs in successfully he gets directed to the actual app with certain things being displayed based on his current permissions.
Now, i have implemented little test projects with multiple JSPs to do redirects using Window.Location.replace("...") but then I have no idea how to actually populate that particular page with what I want to be replaced.
From just 1 GWT app is it possible to have a full web page in static HTML files (or even JSPs i don't care), a Login Page, and the actual App.
And if this is so, How do you do this?
I use RootLayoutPanel.get() to load up my main App - how does it know which RootLayoutPanel to actually use - i've spent hours fighting with this and a lot of the tutorials / answers to the questions don't provide much depth as to how to actually go about implementing anything. There is obviously something i'm just missing
I want to do something exactly like the example in the showcase: https://www.blueworkslive.com/#!gettingStarted:overview
If you use chrome and check the tags every single page on there says GWT 2.4, so it's definitely not like one answer i came across saying "don't use GWT for the login". This seems like it should be something simple that I just... am not finding or honestly am not getting from any of the examples.
This is close to the last step of my project and any help on this would be greatly appreciated.
I'm using Apache Shiro with GAE, Objectify for a database and RequestFactory - there is only one main html page and the app is simply calling getRootLayoutPanel to load the app. not sure if any of that is useful.
implementing the page isn't the issue it's just the redirecting
To login on GAE, via Google account or federated login, you need to redirect your user to login page. Since you run GWT, which usually only has one page, you have two choices:
Do the normal redirect to login page - in this case browser will go to login page and you will loose GWT app state. After login, you can be redirected back to GWT app. As said - GWT app state will be lost. This is the simple way.
Open the login page in child window or iframe. Set destination URL to a page that closes the window (actually it must install a javascript parent hook, that destination page calls). When login is done, destination page calls JS hook, which notifies parent page thet login procedure is over, closes the child window/iframe and continues. This is more complex, some login pages do not like iframes (in case of OpenID login), but it retains your GWT app state.
To answer your question:
Yes it's possible to have multiple pages in a GWT project (GWT pages/modules and static files). Of course, as you navigate from page to page, you will loose app state. GWT module is only "active" as long as page is loaded in browser.