I am experiencing the same issue with Samsung Internet browser version 23.0.1.1. Can you please share what is the status on the distinguishing PWA from Samsung Internet browser issue?
We’re having a similar problem. We’re checking with the code window.matchMedia('(display-mode: standalone)').matches if the web is open in a Trusted Web Activity inside an Android App, and it returns always false, when it should return true. It works fine when the browser is Google Chrome.
@Ahsan
How is it progressing? The issue is that it is returning false even in standalone mode. It shouldn’t always return false, but rather it should return according to the environment.
Upon further inspection, the functionality works correctly when installed on the home screen as PWA. While it operates properly in Chrome when executed as a TWA in the Android app, it fails to recognize standalone mode in the Samsung Browser.