Skip to main content

Invoke

Decide how you want Shake user feedback to be invoked.

Invoke manually

By default, Shake screen is invoked by pressing Send feedback floating button.

Send feedback button is automatically added to the screen after Shake.start method is called, you don't need to code anything.

Default screen

Shake will show New ticket screen when invoked. Feel free to change which Shake screen is shown on invocation:

index.js
Shake.config.defaultScreen = ShakeScreen.NEW_TICKET;
Shake.config.defaultScreen = ShakeScreen.HOME_SCREEN;

Disable Send Feedback

You can disable default send feedback button if you want using the code below:

index.js
Shake.config.floatingButtonEnabled = false;

Invoke through code

Shake can be invoked through code by calling the Shake.show method anywhere after Shake.start.

The show method can be called with the argument ShakeScreen which determines the first presented screen in the Shake UI.

index.js
Shake.show();
Shake.show(ShakeScren.NEW_TICKET);
Shake.show(ShakeScren.HOME_SCREEN);

If enabled, activity history, and all other data are also automatically attached. No additional code is required.