How should I code my custom in-app message?