Salary earned by a Resident of India for services rendered in or outside India are both taxable (whether received in India or not).
Salary Tax for Non-resident (NR) or Not Ordinarily Resident (NOR)
In the case of a non-resident or a not ordinarily resident, Salary received in India, whether for services rendered in India or outside India, is taxable in India.
Salary Income deemed to accrue or arise in India
Besides, the following whether received in India or not, is taxable in India, since they are deemed to accrue or arise in India: -
Salary earned for services rendered in India
Salary earned for rest period or leave period which is preceded and succeeded by services rendered in India and forming part of service contract of employment
Salary earned by a Citizen of India, for services rendered outside India, if paid by Government of India