If you are not a Canadian citizen, you must physically reside in Canada for the whole time that the application is being processed. Short vacations of a couple of weeks would not be a problem but longer than that would risk the application being rejected.
If it's not an "inland" application the applicant has no travel restrictions but the PR sponsor still does.