If you are a non-hukou, it is ok to study, live and work in other provinces for a long time.
Tips:
For example, if the applicant is registered in Beijing and has worked in Shanghai for a long time, he can make an appointment in Shanghai.
The embassy is not particularly strict now, about the consular district.