A/B testing is among the most popular and effective ways of testing in-app messages. You should prepare different types of in-app messages and basically try, fail, and learn.