How weex native customizes or modifies userAgent?

you can get an empty value of userAgent in weex.config.env.userAgent, but a series of parameters such as phone model plus system version are directly assigned and modified when you request the interface. The print shows that it is changed, but it is not changed when you request the interface again

.

or the userAgent brought by the fetch request is not weex.config.env.userAgent

Mar.02,2021

add

to the header of the direct fetch request.
header:{
    "User-Agent": "123123"
}

is fine

Menu