🚀 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.
Set activation methods by code
Some situations require you to set the activation methods by code. This can be done with the following method.
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: