Plugin or package for taking location permission in andriod and ios web view application - webview

I was originally using navigator.geolocation as this works wonderfully in web browser and android browser but it's to working in safari as well as android or ios web view. It's throwing some errors and after studying online I came to discover that is been removed and only working on some platforms. Is there any other alternative o take permission in web view applications in general?

Related

Remote Vue.js app not works into a UKWebView on iOS 12.x

I have this strange behaviour:
I implemented a single page application using Vue.js.
This application is deployed on a remote service and it will be loaded into a mobile web-view (just using the url of the service)
This works fine on iOS and Android.
Only on a iOS device, using iOS 12.x version, the application is not loaded: I see a white page and I immediately receive a didFInishLoading callback.
I'm not able to understand the causes.
What can I do to understand the error?
Searching on the web I'm reading that the WKWebView on iOS 12 doesn't support javascript ES6. Could be this the reason?

WebBLE support in iOS

I am trying to interact with a BLE device through webBle. I was able to do this in Chrome in Android. I was trying to do that same thing in iOS Chrome as well using.
navigator.bluetooth
But it was not working and after some research, I found that it's supported only in macOS and not in iOS.
I was wondering if there is any way for me to interact with the BLE device on iOS using a browser?
Web Bluetooth is not supported by Mobile Safari or WkWebView and has not been added by major 3rd-party browsers on iOS. There is however a Web Bluetooth-specific browser called WebBLE which includes an implementation of Web Bluetooth. It is open source software with code available on GitHub.

Can Chrome run angular progressive web app on iOS?

I am going to develop a web app using angular and google web API. I am curious if it can be run also on iOS? Are there any thing which are different from that run on Android I need to pay attentions when develop the app?
thanks
Safari has added support for PWA from IOS 11.3. If you are using previous versions of Safari. IT won't work. From IOS 11.3, It supports these 3 features
Web App Manifest
Service Worker
Cache API
Adding to Home screen is not yet supported.
Here is the comparsion for PWA between Chrome and Safari. https://medium.com/#firt/progressive-web-apps-on-ios-are-here-d00430dee3a7

Web App accessing iOS camera for QR scanning

For 'check-in' purposes, my staffs have a mobile device (ios and android) that opens my web app through a browser. They then open a page and it allows them to scan a customer's qr code to check them in. I would like it to have as little user interaction as possible. All they staff needs to do is to keep the webapp open, and scan the qr code. The web app will then call an api on my server which check this customer in. So accessing the camera's view is best, i can then run a qr code scanner.
I've been able to do it for android (using getUserMedia) but it doesnt work for ios. (duhhh)
I'm currently using Vue.js(V1), and would like to keep it as it is.
Hybrid Apps: I've looked at OnsenUI(which seems to only work with vue2), Ionic(which doesnt allow me to build/run ios platform as i am using windows).
webapp is coded with vue.js(v1), running on a tomcat7 server, HTML, JS.
Are there any suggestions?
I've found a way to use Phonegap to allow this.
Edit: Phonegap allows you to create a hybrid app that seems like a native app(ios or android). All i did was install phonegap and used one of their plugins (barcodescanner). This is the refrence i used.
But, from my understanding, You'll need to publish the app on the app store, which is a lot of hassle (and cost money).

BlackBerry OS 6 App Dev

When developing a application for iOS that pulls in a web site, you have a very simple web app wrapper that as far as I know acts like an iframe, pulls in the web site and boom - you have an app.
My understanding is that if done this way you are using a "stripped down" Safari to view the web site in a "app" as it is a web wrapper.
When developing an app for BB OS6, is it the same concept? If I develop a wrapper that says "go fetch site x and display it in this app" is it going to use BB OS6 default browser APIs to render said site?
Also is there links to said API?
If all you want is a container to display Web content I'd highly recommend you use Webworks (or cordova for cross platform) as opposed to Java. WebWorks already creates and sets up the bf2 for you in a tested and proven way.
The equivalent of UIWebView for iOS would be the BlackBerry BrowserField.
If you want some examples of how to use it, I recommend installing the BlackBerry Eclipse plugin. That will install in Eclipse the full BlackBerry Java SDK (e.g. version 6.0, 7.0, etc.), which comes with lots of sample code. From Eclipse, you can then
Import... -> BlackBerry -> Import BlackBerry Samples -> BrowserField2Demo.
Note that you want the BrowserField2Demo, not BrowserFieldDemo!
Or, you can go directly to the github site with BlackBerry sample code.

Resources