Is it possible to detect if user use our PWA from desktop or from mobile? - device

I'm working on PWA, this is my first try with it. I have done the tutorial https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/ and few research but I didn't found anything about my problem : I would like to know if the user is using the app from his desktop or from a mobile, and then, if he uses the app from a desktop, change the start url (in order to go to a real website). Do someone have a clue ?

Related

How to do a Flutter Firebase app for both Mobile and Desktop at the same time

I see many samples and videos on how to do firebase for mobile and they call this "multiplatform". However, I don't see much on the desktop. There is one video on firebase flutter Windows by using a web and it seems to work. However, I do not see any tutorials for both mobile and desktop. Firebase would be a great example on syncing between desktop and mobile. We have such an app in development right now. Desktop development is new, but I'm surprised how little there is.
There is a library called firebase_dart, but the documentation seems weak.
The package firedart with the video listed above works in both desktop (linux and android without much modification..
What needed to be modified?
I had difficulty with the button on the very top of the phone, so I
added a sized box.
I had difficulty with debugPrint or print so I
added a Text widget with the results (to string).
That also worked.
Although I would like to not use fluent_ui, it does work for both desktop and mobile. I'm not sure what to do with realtime db, but I think I can make the firedart work for user sync between mobile and desktop.
It would be better if I could get firebase_dart to work.
https://www.youtube.com/watch?v=Tw7L2NkhwPc

Open Microsoft Edge while running app in Hololens

I want to open Microsoft Edge while running an app with the HoloLens. In my particular case, I'm developing a simple 2D app in Unity, where the idea is to press a button and open a pdf file, image, etc. Currently I've managed to open these files with the WWW class by pressing a button, but everytime I do it the app gets closed...
Is it possible achieve it? what would I need to implement in order to do it?
Thanks in advance!
To open EDGE or the default web browser you can use Application.OpenURL
https://docs.unity3d.com/ScriptReference/Application.OpenURL.html
In any case your app will go to the background, In case you need to show a website inside your app you will need to use any Plugin/Asset like this one https://github.com/gree/unity-webview that sadly doesn't support Windows.

QNAP Web UI - How to get the windows in a web app?

I am learning to write web apps. I am currently working on a project and recently purchased a QNAP Nas unit. The web UI for the admin settings is perfect for what I would like, but I don't know how to do the windows thing.
Basically you have a menu on the left of the web UI and when you select an admin option it opens a window that you can move around and minimize etc within the app. Does anyone know what technology this is? I don't mind RTFM but I jsut need to know what to read. I have googled and cannot find anything on whatever it is, probably because I don't know what to google for.
Something like this:
If anyone can point me in the right direction of what I can google or read up on that would be great.
You need JavaScript application framework for building interactive cross platform web applications using techniques such as Ajax, DHTML and DOM scripting.
QNAP is using extJS.
Web Desktop demo using extJS that you were looking for.

Not able to debug phonegap app running on windows 8 mobile

I have a phonegap application that has some layout problems. I can run the app in browser for the most part, and this usually get me over the line. But with a new design I need to debug the application layout on windows phone 8.
I'm currently looking at weinre but its not showing anything on the desktop when browsing the local server, I have added the link to my application I have cleaned up everything I can think of. Still blank. Any good tuts around the ones I have read just copy and paste the original docs or are not on my same error.
There's a public weinre server available here:
https://the-weinre.herokuapp.com/
You may have better luck with that than with your local server. There's a demo available on that page, give that a try and see if it works on your windows 8 mobile device.

Windows Phone - Call default web browser

I am trying to develop Windows Phone App, I would like to know that how can I call the default web browser with a specific URL(e.g. http://www.google.com) when I launch the program?
Thanks
When you're launching "the program" as you say (Internet Explorer) you use the following code:
WebBrowserTask browser = new WebBrowserTask();
browser.URL = new Uri("http://www.google.com", UriKind.Absolute);
browser.Show();
The WebBrowser task is inside the Microsoft.Phone.Tasks namespace, the documentaion of which is here: Microsoft.Phone.Tasks.WebBrowserTask
You should also know that the "default" browser is always Internet Explorer, because right now there is no way for users to define an alternative browser as their "default".
Edit:
After reading your question more closely, I can tell there is a little bit of ambiguity. If you want to launch the browser immediately when your app launches, you should know the following:
This kind of application will fail Microsoft's marketplace validation (check the Application Certification Requirements for Windows Phone
Even if it didn't fail the certification, it would be a kind of strange application... not one that is of very much use to your users.
If, however you intend to launch the phone's browser when the user clicks a button, then the above code I posted will work just like you want it to, just make sure to include this line at the top of the code file that it's in:
using Microsoft.Phone.Tasks;
Hope that helps!

Resources