How does WeChat Mini Programs judge whether the equipment is equipped with "Liuhai"?

now all kinds of mobile phones are being designed by Jialiuhai. If you often change the code by judging the phone model, I wonder if there is any way to judge by testing the screen.

Mar.20,2021

refer to this method to see wx.getSystemInfo

remarks:

  1. if you are not in full-screen mode, you should not need to judge the bangs, because Wechat himself will automatically determine the top space.
  2. Vertical screen mode, if it is at the bottom, there is only one model to judge.
Menu