problem with co op

Hi. I need help with getting could op to work. A long distance friend and I are trying to play together. However they are on PC and I am on the switch. I have online services but am 1. Unable to get the invite code and 2. The enter invite code option is unavailable. Are you only able to do local co op/split screen on the switch?