Apple is under pressure in China as a result of rising competition from domestic brands, in particular Huawei.