Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Android App Rating - PostponableAction not found #527

Closed javi-mad closed 2 years ago

javi-mad commented 2 years ago

Expected Behavior

Android App Rating should work for all SDK versions

Actual Behavior

We have implemented the AppRating for Android by following the documentation: https://docs.leanplum.com/docs/app-review-request#android-review-request-setup but after upgrade from 5.7.0 to 7.0.0, the class implemented is failing as com.leanplum.callbacks.PostponableAction no longer exists from the 6.0.0 version.

Steps to Reproduce the Problem

  1. Use the SDK 7.0.0 version implementation "com.leanplum:leanplum-fcm:7.0.0"
  2. Follow the documentation to create the AppRating.java class for android
  3. Build the project

Specifications

hborisoff commented 2 years ago

@JaviTeamCMP You need to do a migration on the templates, because we refactored them in 6.0.0. If you haven't, please follow our migration guides - 6.0.0, 7.0.0. The AppRating template is added in our custom templates repository and already migrated to 6.0.0, and don't forget to register with com.leanplum.messagetemplates.MessageTemplates#registerTemplate.

javi-mad commented 2 years ago

All good now, thanks!