Can you advise whether there is any way to get the dynamic, visual content from the website in the Android mobile app?
To explain it better – this is what we offer to the customers on computer & mobile device (any of those 2 visual, interactive toursis placed on the website through iframe):
https://itoma.co.uk/our-online-virtual-tours/
Instead of a browser on the mobile - we want to give our customers the same experience in Android app (with extra functionality already there) e.g. imagine this app with this added feature instead of pictures of a building.
Any ideas on how to deliver it please on Android?
Any apps that you'd know that already achieved that so we could check it out please?
Related
This is my first time on StackOverflow, so I come with two questions at the same time because they are related :
1 - I have a website that works great on my local server. It is made on Joomla. I heard about the "WebView" thing that iPhone and Android offer and I would like to know if it is possible, still in 2015/2016 to make an app that is basically just a WebView of a website ?
2 - If yes, I saw on old forums (earliest 2014) that Apple rejects WebView apps. Is it still the case nowadays, is there any "tricks" I should know about it ?
Thank you very much
Yes you can make the WebView only app but it should be mobile responsive
No apple don't reject the app with only webview in it but the website should be mobile responsive and you have to fill all other info to approve it(I know because I have few apps with webview only).
I don’t have any knowledge for iOS but I can tell you about android one:
In android devices you can open a web site through 2 different ways, the first one is through web browser and the second one is the one you mentioned web view. Web view is a system component for Android OS that allows your application to display content from the web page directly inside it (the application).
Yes it is still available for Android you can make one.
I'm trying to do some simple website application for displaying my website and add some specific functionality to it.
My idea is to do something like Facebook app for mobile. Simply I need to display a website and replace File input - users should be able to capture a picture from camera or pick it from gallery (multiple select) and attach it to a post.
TL;DR;
Check images in the bottom.
What I have tried:
Using Cordova with Camera and Image picker plugin and displaying webpage in InnAppBrowser
Taking pictures with camera and picking pictures from gallery and then uploading them to server - there is a lot of examples of it.
What troubles I have found:
InnAppBrowser is forced fullscreen so I cannot resize it and place some buttons for picking pictures under it.
What do I need:
I just need to somehow attach images (from gallery or camera) to form file input or upload them to some kind of api instead - the api would process images on server and return some IDs which I can use instead of file input in the form on page to attach images to the post. Some hidden input where I would just insert IDs of uploaded images to be attached to the post (I'd write some if conditions into my PHP script).
I need my application to be multi-platform (Android, IOS, WP) so that is the reason I'm using Apache Cordova. I've tried lot of solutions and I've searched like for 5 hours. But I wasn't able to find anything useful.
Have somebody some experience in this way? Did somebody make some kind of that application?
If you can suggest any solution (it is not important to be a Cordova but it must be multiplatform) I'd be glad!
Thanks for your time!
Images
There is screen of desktop version with normal file input:
There is my vision of mobile application version with camera and image picker option right under web browser:
I guess I was not clear. The technical answer is Cordova/Phonegap are not for creating website applications. This means technically there is no "correct way" to do what you are asking.
For a website applications, all the pages are rendered from the website and controlled from the webpage/webbrowser.
For a mobile application, all the pages that the application can directly control are rendered on the mobile device. However, pages can be rendered (and/or created) from either the server or the mobile application, but the control of the page stays with the side that rendered (or created) the page. There is clear line between the two sides that can be moved, but at the *peril* of the programmer. (There are no points for being clever here, only added security issues.)
However, the Cordova and Phonegap do have plugins.The entire purpose is to use plugins to make certain task easier. However, there is a clear line between the phone and the website. To be clear on this last part, this means that all of the "plugin services" on the phone (accelerometer, contact list, etc.) are directly available to the application, and not the website. However, some of the "services" are also available as HTML5 APIs, such 'camera' and 'geolocation' – mixing the two is dangerous. The HTML5 APIs should remain on the webserver side, if used. The UX is different for HTML5. (I will not discuss HTML5 APIs any further, as they are beyond the scope of this discussion)
To make your idea work, you will need the following "core" (or equivalent third-party) plugins
file-transfer
camera (or equivalent)
inappbrowser
On the file-transfer and camera, you can do everything from the webserver, if you want. Then the only task for the end-user is to select the appropriate folder and image. If you do this from the server-side, then you CANNOT use the plugins.
If you want to use the plugins, then you cannot use a server-side generated webpage. You must create the form on the mobile device. This means the page and the form reside on the mobile device. However, if you write your webpage correctly you can dynamically add or delete elements. This means on the mobile side you have control over every step of the user experience and can enhance that experience.
On the inappbrowser, a common trick is to put the website in an iframe. However, you have no direct control on the iframe. Another common trick is to submit to the server via an API – then have the visible webpage update separately. Another common trick is to have a webpage with a websocket that could handle the webpage update. However, this could also be done with a push to the webpage, or have the webpage do polling of the server. Again, the App has NO direct control of the webpage.
This entire thread makes the following assumptions.
There is no "correct way" to do this task.
The images (photos) are stored on a website, and are publicly available for viewing.
It also assumes that no HTML5 APIs will be used.
If I interpreted your problem statement correctly, I believe what you are looking for is access to device native services - camera & gallery - from your mobile website.
A solution that fits your design requirements is for the browser to provide such services. Unfortunately WebKit and other browsers limit such support to things like Geoposition.
The way for Cordova to help you here is if your mobile website is an stand alone HTML5/CSS/JS application that can use CORS XHR or WebSockets to communicate with webindependent Web Services.
If you can bottle your website into a set of static html/js/css files that display content from dynamic web services then you are set. That same javascript can then call navigator.camera.getPicture(success, fail, options) and file-transfer the result to a waiting web service.
That camera api is not available to the InAppBrowser just as it is not available to WebKit Chrome/Safari/Edge. Trying to control the Mobile App via the InAppBrowser is most likely to fail due to security constraints.
What you might get away with is re-imaging your browser application as a series of discrete services that return raw html snippets suited for a new mobile app. Then write your Cordova app as the top level container that manages the navigation amongst the html snippets. This server-side rendering would be most useful if it was significantly challenging enough to overwhelm the mobile platform / web services pattern (think custom video server or expert system).
#Jakub,
Cedric has essentially stated it plainly. I will restate. You understanding about Cordova/Phonegap is not correct.
From: Top Mistakes by Developers new to Cordova/Phonegap
You have hit issue #5.
I QUOTE:
From Phonegap FAQ
A PhoneGap application may only use HTML, CSS, and JavaScript. However, you can make use of network protocols (XmlHTTPRequest, Web Sockets, etc) to easily communicate with backend services written in any language. This allows your PhoneGap app to remotely access existing business processes while the device is connected to the Internet.
In addition, Apple frowns on using apps as wrappers for websites.
Quote Apple iTunes Guidelines - 2.12
Apps that are not very useful, unique, are simply web sites bundled as Apps, or do not provide any lasting entertainment value may be rejected
To be clear, your idea may be valid, but you will likely need to rethink your internal workflow. You likely want to keep the same UI and UX.
Does anyone have any suggestions for the best way to create a web link that, depending on the device the user is browsing with will direct them to a website (for laptop/desktops), the App Store (for iOS devices), the Play Store (for Android devices) or the Win8 store, with a default to the website if device type is unknown?
At the moment, the best option seems to be to direct users to a website exclusively, with smart banners that will show a link to the App Store on relevant devices using the following code in the site header:
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
But this is inelegant and can be missed by site visitors plus the additional step leads to a high dropoff. Any suggestions or thoughts would be appreciated!
Rather delayed reply but here goes:
Detect which OS is being used using Javascript code. Link
Change the hyperlink based on whether it is an iPhone Android or Windows.
If its iPhone use this, if its Android use this and for Windows use this
Hope that helped!
The company I work for is exploring creating "an app" version of their online video delivery webapp. The webapp is HTML5 and streams video. Nothing too scary but a lot of the stuff is server-side authentication with third party video hosts, code that will never be in a mobile app for security reasons.
The webapp has a lovely mobile stylesheet that works fine. We want an app that:
Shows a quick splash screen (and even that's optional)
Load the existing mobile website (not include it within the app)
And have the ability to specify an icon, give it a name and then shove it in the relevant marketplaces. That should satisfy the marketing department and it means I stay in control of what the app actually does.
Yeah, it's possibly the laziest app development ever... But, what's the simplest way to generate something like this? I was imagining there might be something out there already where you feed it your starting URL, splash screen, icon and name and it hands you back a multi-platform app.
Note: I'm not looking for something to create an app that looks like the mobile website and I'm not looking to put the content of the mobile website inside the app, I essentially just want a browser that loads the real mobile site.
Have a look at https://www.shoutem.com/. They provide a service similar to what you seem to be looking for but they charge royally for it. Considering the extra features you can easily add with their service your marketing department might just smell profit from using it and may therefore happily sign it off with their well known satanic smile.
There are a number of websites which provide easy web app development for a website. One of the famous is App Maker . Others include:http://www.viziapps.com/ and http://ibuildapp.com/
Since posting this, I have found:
http://www.websitetoapp.net/create
Feed it a URL and an Icon and it'll give you an Android app. Pay $5 and they'll disable adverts. Seems like it might be perfect for the Android half of this project.
Now, is there anything out there that will do this for other platforms?
is it possible to programmatically access the website that is currently displayed within the Android browser?
As far as I know the native Browser doesn't handle plugins (please correct me if I'm wrong), so I thought that reading the browser cache would be an option.
Is there a more sophisticated way to get the currently displayed HTML?
Thanks in advance!
S.
is it possible to programmatically access the website that is currently displayed within the Android browser?
That would be a security violation, so, no. Also bear in mind that there are several Web browsers for Android.
As far as I know the native Browser doesn't handle plugins (please correct me if I'm wrong)
The standard browser app supports plugins, but not ones downloaded on the fly. So, for example, it supports the Flash plugin (on Android 2.2+), but you have to install Flash separately first.