When you’ve identified at least one person who can vouch for you, alert them that you’ve applied. Yes, apply before reaching out for a recommendation because all good recruiters will force you through the appropriate channels before moving forward with your candidacy.
LinkedIn Makes This Very Easy.