• Resolved AWOL

    (@awol)


    Hi,
    On both Android and iOS devices, if I send a link to my site to someone who already has the PWA installed, it always opens their default browser, and not the web app. Is there any way to change this behaviour? There appears to be, at least on Android devices, a facility for the user to change the behaviour in the settings (Apps > select app >(App info) Set as default, then Go to supported URLs with a choice of In this app, Always ask, or In other app, but whichever option I choose it always opens the default browser. Is there something that needs to be added to the manifest file or is it just not possible? I am assuming that until iOS fully supports PWAs that its not possible but Android? I hope it can be done.

Viewing 15 replies - 16 through 30 (of 31 total)
  • Thread Starter AWOL

    (@awol)

    As I said above, I already updated and tested and it has not fixed the issue with the element click. Looking in the console I can see that there is a javascript event ‘bubbling’ and I can look at the js code, but it is not firing on click. Nothing happens when I click it while looking at the Network panel. Is your js being loaded in the footer? Could this be a conflict with other js running on my site – I have several other own coded scripts running. I don’t know enough about js to know what to look for, but there aren’t any errors in the console, or in the error logs.

    • This reply was modified 2 years, 1 month ago by AWOL.
    Plugin Author Magazine3

    (@magazine3)

    Sorry for the inconvenience. If possible, Can you please check once if is there any conflict? Can you please check once by deactivating the active plugins one by one on your site and let us know back if there is any conflict?

    Thread Starter AWOL

    (@awol)

    Hi @magazine3 ,
    As I have already done the deactivation of plugins previously without any change, I have been trying some more tests; the element click is working in Google Chrome now, but refuses to in Firefox, Opera, Samsung Internet or Brave. Those four browsers also do not show the automatic banner, and the last three were only tested on my Android phone. As the update didn’t announce anything regarding my original query regarding links not opening the app I have not tested that again. With all 4 of the browsers that won’t show it, I have completely cleared the cache and turned off any settings that would block popups. I also checked the database of my site to make sure there was no flag created in the user meta when any user cancelled the popup or installed the app in case that might have been preventing it.

    On that note can you tell me how this is dealt with, because I can’t find anything that relates to it? There doesn’t seem to be any database table for pwa, and as far as I can tell nothing in user meta, so how is the display of the banner and the element click popup contents configured? Or will these show to a user regardless of whether they have the app installed if they are not actually using the app and are browsing with, for example, a different browser to when they installed the app?

    If you really think I need to deactivate the plugins again, I will do it, but it seems to me that it is either a browser settings issue or some code in your plugin that isn’t able to work with those browsers. However if it works on those browsers in your tests then please let me know, and I will see if I can figure out why it won’t on my devices.

    Plugin Author Magazine3

    (@magazine3)

    Sorry for the delay in getting back. If possible, Please share the short video of the issue once, So that we will get the exact scenario and get back to you immediately.

    Thread Starter AWOL

    (@awol)

    Hi @magazine3,
    I’m not quite sure how I can take a video of something that doesn’t happen? All you would see is a button being clicked and nothing happening in a variety of browsers on two different devices. What exactly are you trying to see? Can you let me know if in your tests whether the element click method works in ALL browsers on ALL devices (except iOS)? If it does then it would be clear that the issue is specific to my devices, so are you aware of any devices where this is an issue? Or are you asking me to video my original issue, that links in messages or emails (for example) always open the default browser of the device, rather than the installed web app? Again that would just show clicking on a link and the browser opening rather than the app – I don’t see what the point is. Do you not understand what I am describing?

    Thread Starter AWOL

    (@awol)

    @magazine3,
    Is there any update on these issues? I still don’t know if this is just an issue with my site, or whether this is happening in your tests, or what the ‘correct’ behaviour is? Just as a reminder the issues outstanding are:
    1. If a link to my site (e.g. in an email or text message) is clicked by an existing user on a device that already has my PWA installed, it doesn’t open the app, it opens the default browser on the device;
    2. The click on element to install the app does not work on all browsers in my tests, both on an Android mobile phone and a Mac desktop and laptop. In fact most browsers except the ones I have previously mentioned;
    3. The automatic Add To Home banner is not appearing on all browsers on all devices in my tests, only a couple.

    Can you please let me know, with respect to these three issues, how your plugin is supposed to operate, if it is actually operating correctly in your tests (on all browsers and relevant devices), and if there is an issue that is being fixed, or whether it is something specific to my site that I need to investigate further? I just don’t want to waste my time trying to find causes in my code or plugins on my site (even though I have already tested with them disabled) if the problems are actually in your plugin. Just please respond so I can move forward.

    Plugin Author Magazine3

    (@magazine3)

    I am sorry for the inconvenience and delay in getting back. I have tried to replicate the issue and couldn’t able to find the trigger point from where it’s happening. Need to inspect more to debug it. Can you please help the more info? So that we will surely help you to resolve this issue.

    Thread Starter AWOL

    (@awol)

    @magazine3,
    I’m not sure what additional information I can give you? Maybe if you can tell me what sort of thing you are after I can look for it, but it would really help me if you could tell me what is supposed to happen with the link issue, and if you have tested that, and on which devices and browsers? For example, if you send a link to a page on a PWA site in an email to someone with the PWA installed, and the recipient clicks the link, should that open the PWA? I still don’t know.

    Regarding the two other issues connected to installing the app, have you tried it on the browsers and devices I have previously listed and do they work for you? If they do, please tell me so I can then know that it is clearly an issue with my site; but if they don’t then it is an issue with your plugin.

    If you want to look at my site please give me either an email address or some other way to give you the required details to access the site. Also if you have a list of plugins that are known to conflict with your plugin that would be extremely useful, not just to me but I’m sure to other users. I am going to start again with trying to check existing plugins, despite nothing changing last time, and will update here if I discover anything. Any hints you might have as to the type of plugin I should concentrate on would also be helpful.

    Plugin Author Magazine3

    (@magazine3)

    You can go through our Help tab from the settings panel it will be more helpful for us to solve the issue ASAP!

    Thread Starter AWOL

    (@awol)

    @magazine3,
    OK, I have sent a message.

    Plugin Author Magazine3

    (@magazine3)

    Thank you.

    Thread Starter AWOL

    (@awol)

    Just to update others who may be following this for help with their own issues (now or in the future), the current situation is as follows:
    The link issue in Android has been resolved, and it was caused, essentially, by the links being incomplete, in that they will only open in the PWA if the whole url is being clicked – i.e. if you have a link that is mysite.com/home/ that someone has received in, for example, an email or sms, this will open in a browser but NOT the PWA – it must be https://mysite.com/home/ (or presumably https://mysite.com/home/) to open in the app. The iOS link still doesn’t work at present and the plugin devs are still trying to resolve it.
    As far as the Add To Home issue neither the automatic banner nor the element click method is working for me on Firefox, Brave or the Samsung Internet browsers for Android, but does work in Chrome and Opera, and this is still being investigated by the very helpful plugin author(s)

    @awol @magazine3

    I hope you are both doing well ??

    Is there any news on the matter ? I am not able to open directly the PWA on link click both on iOS and Android even if the url is complete https://subdomain.domain.fr/

    Cheers ??

    Plugin Author Magazine3

    (@magazine3)

    @simontheo: As per forum guidelines, Please open a new topic on your issue. So that we will assist with your case individually there.

    Thread Starter AWOL

    (@awol)

    @magazine3, someone marked this as resolved, but as I am still waiting to hear from you about iOS I have changed that to not resolved. I am assuming that this is yet another thing that is due to iOS not playing nicely with PWAs, that will hopefully be resolved when they update iOS, but it would be good to have confirmation that that is the case. The Add To Home function is also still not functional on all browsers, and while there may not be anything that can be done about that at the moment, as it is at least partially, if not completely, due to the browser developers not implementing certain things, it would still be good if this, and the iOS link issue, was acknowledged and noted for other users.

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘Links to site open browser, not PWA’ is closed to new replies.