Open Instant app from android WebView - android

Here is the idea what I'm trying to do.
My app is around 24MB. I want to break it into modules using google instant app. My idea is I will implement a WebView in which I will load my website which is a dashboard. Now what I want is when a person clicks on any item from the dashboard, the related instant app is loaded. So the user will install only the module which he needed.
Now coming to the problem- How can I open an instant app for my app WebView. I'm able to do it with chrome.

Ok, I have solved it. Just set the webview chrome client and it will able to detect instant app from the link.
webView.setWebChromeClient(new WebChromeClient());

Related

Converting a WordPress site into a PWA

I have a WordPress website and I am transforming this website to a PWA with the help of a plugin.
The PWA is working as expected: notifications, working without internet …
I have also followed this tutorial completely:
https://css-tricks.com/how-to-get-a-progressive-web-app-into-the-google-play-store/
At the end, I have an Android launcher.
The new app is doing this:
If the browser is not set by default, it will ask the user to choose a browser.
I have an URL bar at the top of the app.
The app is not working without internet.
How can I fix all those points?
If the browser is not set by default, it will ask the user to choose a browser
Can't get this one, every mobile phone already do that by default, I think.
I have an URL bar on top of the app
Check if you have included the tag:
"display": "standalone"
on the manifest.json file
the app is not working without internet.
Check your service-worker.js file to see the resources needed to provide an offline experience are effectively cached. One can use this nice tool from Google to define routes policy easily.
You can use this Helpful tool.
Not installed yet
A URL bar being still visible at the top is indicative that the web page has not been installed yet as a PWA on your device. Choose Install from the tab menu or click on a [↓] icon next to the URL bar.
This will most probably also solve your other problems.

How to prevent Chrome from opening App Links

I have an android application say Sample App. I want to add App Links according to Android Developer Guide. I was successful in implementing them, but there was an problem with Chrome. When I access the corresponding Sample Web App and there is <a> tag with href="https://www.sample.com/profile" and it's also supported by App, it opens in app instead of continuing in Chrome.
I checked documentation and it is supposed to be default behavior of Chrome. But then I came across Linkedin app. The My Network tab they have when clicked in browser continues in browser but same link if I save to docs or any other application and click it then it opens in native app.
I want to know how this is done?
I believe this is because, as you said, the standard deep linking behavior is to route to the app if it is installed. This behavior is handed-off immediately when the link is clicked because your app overriders that url to be handled by app instead of Chrome.
First, I believe that you should route users to your application because its a better, more engaging experience, presumably.
If you are convinced, then I would change your manifest to strictly handle links that you want to handle. See this post to see how to handle only certain links.

Load webside in iOS App and Android App, not loading after changes

I have a page that is opened inside a webview (Android) and uiwebview(iOS). When it is in the app, it works perfectly, but when I made a change in the code in the hosting site, the page wont't load in Android or iOS either. It's telling me that "error resource is not available". The page does load after refreshing many times. I don't know what is happening. The page is built in Laravel 5.1 and my hosting site is GoDaddy.
Does anyone has the same problem?
Is the app hosted on godaddy using javascript files? In that case you might want to handle that in android app.
For starters you can try to access the website in chrome/ any browser on android device, if its working, try and delete data/cache of app from settings. Or simply just uninstall and install again.

Android App for mobile website

I'm looking to build an android app based off a mobile site. Basically, I just need an app with a browser that I can use as a platform.
Many of the "build an app online" sites offer this, where you just put in the home url etc, but they all include their own ads etc.
Any ideas where to start?
If you want to make your own simple app without Ads, use just a WebView inside of a simgle activity layout set to fill the screen.
Doing this you will eliminate all ads, as well as have the ability to add in more features later on if you so choose.
If you just want to create a launcher icon that will open up the default browser to your sites page, you can do that by just starting a browser intent, and then closing the actual app.
This will allow you to have an app icon and play store listing, however the only thing that iw will do is bring the user to your website like you have mentioned.
Create an Activity with a WebView.
I think you're looking for an app that displays a WebView. However, that will only display the website as if you were looking at it in a mobile browser such as Android Chrome.
If you want the data from a mobile site, without anything else, then you have to hope that the site provides that, or you have to download its HTML and scrape it.

AdMob with Android Phonegap. Open native browser/market

Is it possible to open AdMob web links in native browser and market links in market app?
I.e. now when I click on the add my Phonegap WebView overrides by Ad content and there is no way back except pressing Back button (I should click many times to go back in some cases).
I'm using Phonegap 1.0 and "Smartphone Web" AdMob.
I would imagine this is a setting in the admob code you put in your UIWebView

Categories

Resources