زر الرجوع في PWA لنظام iOS

According to this page, you can detect if a page is running in app mode by checking window.navigator.standalone. Unfortunately, I don’t own an iPhone, so I can’t check. You’ll need to do something different on Android, since they use a CSS-based API instead.