You should reside in Canada for a minimum period of 3 out of past 4 years with a permanent resident status prior to the date of application. According to Canadian Immigration Service, if you had temporary residence status prior to your arrival in Canada that might be counted as germane residency duration.