AhsanAyaz / ngx-device-detector

An Angular v7+ library to detect the device, OS, and browser details.
https://ahsanayaz.github.io/ngx-device-detector
MIT License
520 stars 101 forks source link

Add Standalone as a property #239

Open rmeske opened 2 years ago

rmeske commented 2 years ago

When running a PWA there are times when you need to know which browser and device you are working on. This utility is a great tool for retrieving that information, but there are two additional pieces of information that would be helpful.

One is if the app is running in the browser in a standalone mode. Knowing this is useful for:

Having a single property to check across browsers instead of needing to check navigator and media, would be preferred.

Knowing when the app is online or offline is helpful in how to manage a number of functionalities in a PWA. Again, having one property to check would be the simplest.

DmitryEfimenko commented 11 months ago

+1

hardik-hns commented 3 months ago

+1 iPhone 15 pro is not detecting using PWA stand-alone app + angular.