I have a SPA/PWA that I'd like to embed within a WebView in Xamarin. Is there any way to enable caching or handle service worker registration within the WebView?
Thanks.
Related
Edge DevTools Preview could manipulate local storage of a PWA APP , could i do it also ?
EdgeDevTools is a close source APP , and i googled , no document says some API or SDK could manipulate the localstorage of a PWA APP.
Yes, since the UWP application is a sandbox application, in theory each application is independent of each other and cannot directly access the data of an App.
The PWA application relies on WWAHost.exe, but it also enjoys the treatment of UWP applications. Its data is protected and will not expose data access methods.
Best regards.
Hello guys i'm using xamarin forms
i have a class LocalNotif wish content notification calls
on IOS devices i manage to fetch the device even when the app is destroyed but in Android i don't know how
can any one help please.
Thank you
In order to keep the app running in the background you need to create a service.
A service runs in the background (even after closing the app) and provides info for the application, for example when playing a song in Spotify and it keeps playing even after closing the app, notification from Facebook, etc.
I don't think that it's possible to not enter OnDestroy(), but you can read further about services here.
I developed xamarin forms application with WebView which routing to page with signalR websocket. And when page is loaded connection doesn't start. I have read about android.webview doesn't support websocket. Can someone give me advice about implimintation of websocket via webview. maybe use custom webview or something else.
I read that webview doesn’t allow WebSocket on android version less then 4.0. In my case my webview cached the page that I used before added the WebSocket and when I clear the cache all works fine
I use a Cocoa WebView to display a website which sends HTML5 Web Notifications. When browsing this page using Safari, I receive User Notifications directly in the Notification Center of Mac OS X Mountain Lion.
How I can achieve the same behavior by implementing my own WebView ? I didn't see any delegate methods related to this feature.
Edit: If this can help someone:
https://github.com/jnordberg/irccloudapp/blob/master/NotificationProvider.m
Thanks to Johan Nordberg for sharing this.
There is no public API for web notifications in WebKit on OS X at this time. You should file an enhancement request with Apple requesting that the functionality be exposed. However, since WebKit is open source you can easily find the private interface on WebView that relates to displaying web notifications. As with all private interfaces, it's subject to change without notice and may not be used within an application in the App Store.
In Android, I can define schema in XML, so that while browser or SMS have this callback url, will automatically open the application.
<data android:scheme="http"
android:host="test.demo.com" />
I am wonder is Window Phone have same CallBack function work like Androids'?
I am thinking to develop a App with some part using webapp, but some parts using pure app.
While user logged in the application, there is a webapp page containing a website, if user click on a specific link in that webpage, such as http://test.demo.com, i hope the Window Phone application can get the callback url, so that i can start the pure app view on Window Phone App. (That pure app view is including in the same application, not opening the other application)
If you have opened the webpage on the WebBrowser Control inside your app and the user clicks any link on that webpage then that link will open inside that control itself and wont launch any other app. This is what I have understood from your question.