install progressive web apps from a menu link - javascript

Is it possible to install a pwa from a link?
For example:
you go to a domain name index.html page and view multiple links to different pwa apps.
Then click a link and it installs a pwa to that specific app (with or without) going to a landing page for that app?
As it is now:
if i go to
www.domainname.com/subfolder/index.html
and I have set it up as a installable pwa, it installs and the icon appears on the devices home screen with a link to www.domainname.com/subfolder/index.html..
What im looking for is:
if i go to www.domainname.com/index.html i will see a menu of available apps. if i click an app link it will install the home screen icon and when that is pressed will go to www.domainname.com/subfolder/index,html as the start page, without first going to the app main screen.
I have been experimenting with this, but i cant get it to work, just checking if it is possible, or my code is wrong.

i tried subdomian works, with https for earch subdomain is ok, let me try and post comment later for if subfolder is work

Related

How can I disable deeplinks aka when opening a link, it doesn't redirect to an app but goes to mobile browser

So I am running an ad and I need the potential customer to reach a very specific page. However, when clicking on the ad, it redirects to the mobile app, therefore breaking the path I want the user to take.
Is there a way to add some code that will always direct the user to the mobile browser version rather than the app if they have it installed on their smartphone?
I had a look around but all the solutions find how to bring the person to the app. I want the opposite.
make the link in your ads different from that which you need to open in app
like example.com/add and other links as example.com/* and in regex trying do something like this /^((?!example.com/add).)*$/s

Branch.io deeplink not working in my browser

I created the link in the branch.io dashboard. https://app.zebpay.com/zFAzt88rcT but the link is not working when i opened it in the browser.
I also tried the journey mobile banners they also not changing the button text to the open when I already installed the app on my mobile.
I already added the web sdk code on my website.
The link does not seem to be a valid branch custom link. Please contact integrations#branch.io to troubleshoot this domain and link.

Any way to prevent outbound links from being handled by a native app?

Many mobile apps register themselves as being the way to open certain links. For example, if you have the Medium app installed, then when browsering iOS Safari, if you click on a link to a Medium blog post, it opens in the Medium app.
Is there any way that a website owner can mark up a link in such a way as to force it to open as a web page, not by opening the associated app?
I'm hoping for something like this:
<!-- ⚠️ this does not actually work -->
My blog post
You could use an url shortener, some of them will
Have you tried
<a onclick='window.open("http://yourexternallink.com","_system");'> My blog post</a>

Cordova - Issue navigating some links in a Confluence/Gliffy diagram opened with InAppBrowser

I am building a Cordova Application that allows to browse an Atlassian Confluence site containing navigable diagrams. My diagrams are built with Gliffy and I want to navigate from one page to another via clickable diagram elements. I realized such navigation structure and it works fine in browsers. You can check it out at this link (click on M_Function).
In my Cordova app I am using InAppBrowser and, after a login screen, I am redirecting to a page of my mobile-oriented website (again, an Atlassian Confluence site) this way:
var ref = cordova.InAppBrowser.open('http://51.255.206.207:8090/pages/viewpage.action?pageId=1245261' + page, '_self', 'location=no');
On my website, I have menus and diagrams. When I click on menu items, everything works correctly, but when I click on the clickable shapes from the diagrams, I get an error (the page does not exist).
What's wrong with Confluence/Gliffy links? What's the difference between the app and the browser?
Or, at lease, how do I get to know the URL I am trying to reach from the app?

web app opening external URL without leaving web app

I have a web app. The web app is added to home screen on iPhone. I have many external resources(Links) in my web app. Every time a link is clicked, it opens the web browser because target is set to _blank and there is no way for the user to go back. is it possible that the user will be able to open any of these resources without leaving my web app?
I was thinking of doing the following:
creating an iframe and have the links open within that iframe. I am hoping that there is something better out there.
If you still not sure what is it that I want?
a good example would be, if you look at facebook's native app for iPhone when you click on an article that someone posted, it opens the link within a frame that allow you to go back to your last page. In other words, you never leave their app. I understand that it is a native app and it is completely different but I believe that with JQuery Mobile or just JQuery it is possible. Am I wrong?

Categories

Resources