Skip to main content

Problem

The Native in-apps fail to load GIFs without the GIF dependency on Android Native or Hybrid frameworks, such as Flutter or React Native.

Explanation

  • The issue occurs because the in-app module relies entirely on the Glide image library to load any included images and GIFs.
  • The in-app message display is not completed by calling this method alone:
MoEInAppHelper.getInstance().showInApp(context)
  • Invoking this method causes the following error:
Library support not found: Image and gif require Glide library.
1 2

Solution

  • To ensure the in-app module displays images and GIFs, integrate the app-level build.gradle file into the application’s build dependencies.
build.gradle (:app)
dependencies {
  implementation 'com.github.bumptech.glide:glide:4.16.0'
} 
  • After adding the dependency, sync your Gradle files and rebuild the app.
  • Glide will now be included, and your in-app messages with images and GIFs will display correctly.
2 2