This project illustrates how to define a new message/action template in Leanplum. The samples include a definition of 3-button Confirm message, Slider (Pager) template, and App Review Request. They are available in Java.
Checkout repository and open with Android Studio. Enter your APP_ID and APP_DEVKEY in App.java file. Run project on emulator or device.
Sync the new message templates to the Dashboard from Messages:
Full Documentation can be found in Leanplum Docs.
Once the templates are synced, they will appear in the Campaign Composer under Custom In-App section:
Composer:
Message:
Results:
Milestones:
SliderTemplate class defines a message template containing several slides similar to on-boarding message. Currently due to specifics of Dashboard functionality the slides are hardcoded to 6. If you want to use any of them just add image for that slide from Dashboard. If you need more than 6 you can change the SliderTemplate.MAX_SLIDES constant.
Composer:
Message:
Milestones:
App Rating for Android is implemented using the In-App Review API of the Play Core SDK. Full documentation about the App Review functionality can be found in Leanplum Docs.