I have an android app launching a Webview. I have some sample code in Vue.js that I want to integrate and run in that Webview. I tried to find a way to do so without modifying the vue.js sample, with no luck.
I found code to communicate info between the javascript running in the WebView and the android app, but I got lost adding Vue.js to the equation instead of plain javascript.
Related
I'm working on an ionic app. In my app I want to have a button that will open another app. I tested the hyper link in safari and the link opens the app correctly, but when I click the button inside my Ionic app, it's not working. The Xcode reports
Failed to load webpage with error: The URL can’t be shown
Any suggestions?
If you are trying to use externally hosted web application in your cordova application, check out cordova-hosted-webapp-plugin. The plugin enables using content hosted in a web site inside a Cordova application by providing a manifest that describes the site. Also it lets you use the features of Cordova plugins too.
But if you are trying to just invoke the external web URL from your cordova app, you can make use of cordova-InAppBrowser-Plugin which opens the web URL inside the app itself.
You can also check out cordova-themeable-browser-plugin which is almost similar to InApp browser plugin and provides more control on the browser elements available in the UI. Hope it helps
I'm trying to build a video calling app using sinch and ionic framework. The video call works fineon my localhost browser, but when I deploy the app to my iphone it throwing an error 'Error: SinchClient can't be started with calling capability. Browser not supported.' I'm new to Sinch. Please help
The reason its not working is that WebView/Safari does not have WebRTC to make it work in ionic you need to use the Native libraries and build a JS bridge, if I remember correct ionic is a ui framwork on top of cordova so its a cordova plugin that needs to be built.
So, I'm working on an app which is a web based app. The apps code base is mostly written in JavaScript and HTML. The app is also available on a native app which basically only contains a WebView displaying the HTML and JavaScript code.
My problem is that when a user is on the Android native version and launching an external link, it opens perfectly in the Android WebView but there is some cases where the launched page not is scrollable and other strange stuff.
So to solve this issue I need the native app to launch the in-build browser in the Android phone. Basically, the exact same effect that startActivity(new Intent(ACTION.VIEW,URI)) has.
The thing is that I can't modify the Android version though all the logic is written within the web app..
My question is:
Is there any way to simulate:
startActivity(new Intent(ACTION.VIEW,URI))
in JavaScript to get out of the native app and launch the browser instead?
I have an HTML app which calls some functions from JavaScript files, and the JS files make some AJAX queries and get JSON objects in response.
I have to make a similar app on Android which can be run on multiple devices (Android), by using the same JS files. In other words, I have a JavaScript API, and I have to use this API to make the app on Android.
I have some queries:
Would it be feasible by using WebView (considering it's a big app not a small app)?
Should I use PhoneGap?
Please let me know how could I do this and welcome to some more suggestions.
Answers :
Yes , Using Webview you can build application using HTML + Java Script
Its depend upon you applications functionality and usage of your application. If you want to make your app Cross Platform like (Android , IOS ) You should try out Phonegap.
Here is what I am doing:
I'm building a webpage which I'm going to use in [an] android [app] for [the main] UI.
I want [to] interact with the android code while working the webpage. What I need is when I click a button on the webpage on an android phone a piece of android code should get executed. Normally we use direct buttons from android but in this app I need it that way.
Please drop in any suggestions.
Thank you
You need to read the documentation: Building Web Apps in WebView