Is there a way to differ via javascript if the website runs inside the ipad safari or inside an application WebView?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
For the Spring of 2018 none of proposed method worked for me so I came up with a new approach (which is not userAgent based):
https://gist.github.com/BorisChumichev/7c0ea033daf33da73306a396ffa174d1
You are welcome to extend the code for iPad devices too, I think it should do the trick.
Worked well for Telegram, Facebook, VK webviews.