I developed a Progressive Web App (JS+HTML+CSS), which asks you to "Add to Homescreen" and "Permission for Push Notification" when the user opens it. The problem is that when the URL is opened from a WebView, for example Facebook WebView, the service worker not works.
So I want a way to force the user to open the URL in Chrome mobile. I try using googlechrome://myurl.com or googlechromes://myurl.com but not works, and I also try to create a link like window.open('https://myurl.com, '_system') but not works.
Any ideas? Thanks!
Related
I want to know is it possible to open a facebook group link in facebook app from android webview application build by android studio.
is there any html and JavaScript for that.
With webview in android studio, you can only open links inside your app and not outside.
In your case, you want a facebook group link to be opened in the facebook app which may not be possible using Webview.
That's why you need to use WebViewClient. You need to override shouldOverrideUrlLoading method and start an intetn with the package "com.facebook"
Check this answer: https://stackoverflow.com/a/50293855/12802591
You may need to test if the user already had facebook app installed then open the group link there, if not it will open the group link inside the web view.
Another useful link :
https://stackoverflow.com/a/54589702/12802591
Let me know if it works !
We have a PWA linked to the Facebook advertisement. The problem is when clicking the advertisement from the FB app, it opens the PWA with FB's internal browser which doesn't support PWA features.
Question: Is there a way to open the PWA from FB post or any workaround for the problem? I have tried with dynamic links, but the link is also open in FB app internal browser.
Unfortunately, there is no way you can control how Facebook app behave. Instead, they allow user to choose whether to open link externally. User can go Settings -> Media & Contacts -> Links open externally to disabled the option.
Reference: https://countdownwebdesign.com/quick-tip-open-facebook-links-in-chrome/
I'm new to PWA (Progressive Web App) and using Angular. I have configured a service worker module as described in the Angular docs. Everything is working fine. On Android, the user is able to add the app to the home screen and it is working on offline as well. But I'm unable to find the functionality to open the saved web app by triggering an action in the browser.
Let's say https://pwa.com is a domain and I want to open saved app (on the home screen) from another domain like https://example.com or from another route on the same domain like https://pwa.com/openApp by clicking on a button. Is there any possibility to do this?
Looks like this is possible for Android: https://developers.google.com/web/fundamentals/integration/webapks
But doesn't seem like it works for iOS
https://medium.com/#firt/progressive-web-apps-on-ios-are-here-d00430dee3a7
When user is using an app, Facebook's app for example and click on my website link, my site will be opened in Facebook's app Webview.
I want to prevent that and open it in a browser instead.
Can I make it work by adding some javascript codes to my website ?
Try window.open() method of Javascript.
I want to call android application on clicking of button on some website from mobile.
For example,
When I click the web link, its call to android application if installed. Otherwise its redirect to specific application download on Android Market place.
Thanks in advance.
G. Padmanabhan.
You need to implement an Intent Filter. Read the documentation at the following link:
http://developer.android.com/guide/topics/intents/intents-filters.html#ifs