duskload / react-device-detect

Detect device, and render view according to detected device type.
MIT License
2.81k stars 154 forks source link

isTWA and isPWA Feature #216

Closed mashwishi closed 1 year ago

mashwishi commented 1 year ago

A feature where you can detect if its a TWA installed or PWA installed, most of website using PWA to make their website more like app where users can install and TWA for PWA website convert it to APK to be listed on TWA and there's some content we dont want to share on TWA/PWA version. for example contents like download this via google play store, we dont want that to users to see if they already using the download version which is the TWA of website.

mashwishi commented 1 year ago

This is my temp way at the moment, its working but its messy having an all in one module will be great for this one code