Hint 1- Dogs like to meet you not for you to meet the dog. Never forget to ask permission first. Don't offer your hand out for a dog to smell it like most people are taught, it could bite it instead. I have been bitten 3 times in 42 years with thousands of dogs in my hands. Once was demonstrating exactly what not to do. So what do you do?
Answer - Stand alongside the dog looking in the same direction, but not looking at the dog. (My equal sign) With hands well away, allow the dog to smell your leg and whatever else it wants. When it stops smelling it has met you in its own time in its own way, and you can now pat the dog, but please not on top of the head, down the side of the face or under the chin first. If all good, it likes you, and you can be free with your praise.