Skip to main content

🚀 Activation methods

Gleap offers different triggers (activation methods) to show the Gleap widget. You can configure the activation methods within our visual widget configurator.

The current available activation methods are:

  • Shake (triggered when shaking the device)
  • Screenshot (triggered when a screenshot is taken)

Need a more customized activation method? No worries! You can always open the Gleap widget by code as well.

Activation methods in our visual widget configurator

Set activation methods by code

Some situations require you to set the activation methods by code. This can be done with the following method.

Gleap.getInstance().setActivationMethods(GleapActivationMethod[] activationMethods);
  • GleapActivationMethod.SHAKE
  • GleapActivationMethod.SCREENSHOT

Screenshot Gesture

The activation method screenshot gesture can be triggered by simply storing a file on the device. If you want to avoid behaviour please upgrade to Gleap SDK 7.0.34 or later and add the following permission to your AndroidManifest.xml:

 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>