uniapp App development experience

App FAQs & Thoughts

  1. Run the App on Android studio

Enter C:\Users\ZQ\AppData\Local\Android\Sdk\emulator, execute command line operation:

  1. emulator.exe -list-avds
    2.emulator.exe -avd Pixel_4_XL_API_30
    This will start successfully, just run the real machine in Hbuilder
  1. Black line at the bottom of the phone

Assign a safe value through padding-bottom
insert image description here

  1. Adaptation of Liu Haiping

Determine whether it is Liu Haiping, and if so, add a box on top of the navbar (a component written by myself), with a height of var(–status-bar-height); of course, if it is the default navbar of uniapp, it will automatically adapt. Judgment Is it Liu Haiping's method: plus.navigator.hasNotchInScreen() This method is only valid in App, other platforms should not be used

  1. android version

The test shows that Android 7 or above is required for normal operation

  1. Regarding the tabNar page on the home page, it will flash white when switching pages. I have never known the solution. I also set a black background in pages.json, and set the page color to black in App.vue, but it still flashes white. The official does not give an answer. been avoiding this question
  2. Share function:

To achieve specific functions through the uniShare plug-in, you need to discuss with the ui and the supervisor what the change of the shared content is.

  1. payment function

Because the payment function of this app is paid on the mini program, after the app jumps to the WeChat mini program, it needs to jump back to the app. This also needs to be adapted with the supervisor

  1. Sometimes it fails to start the HBuilder debugging base App on the mobile phone, please start it manually...
    error This kind of error

At this time, you need to open the task manager, close the adb.exe process, and then run it on the real machine again
. I am different because I checked that

Guess you like

Origin blog.csdn.net/Motion_zq/article/details/127356660
Recommended