ToastPlugin is a Godot plugin that allows you to display native Android Toast messages from your Godot project. It connects toast callbacks via signals. The callbacks might not work perfectly on Android APIs under 30.
Source code: https://github.com/leparlon/GodotToastPlugin
- Display native Android Toast messages
- Supports toast callbacks via signals
- Customizable toast duration and position
- Godot 4.2 or higher
- Android API level 24 or higher (API level 30 recommended)
- Copy the
addons/ToastPluginfolder into your Godot project'saddonsdirectory. - Enable the plugin in your project settings:
Project -> Project Settings -> Plugins.
To display a simple toast message, you can use the show_toast method.
if Engine.has_singleton("ToastPlugin"):
var toast_plugin = Engine.get_singleton("ToastPlugin")
toast_plugin.show_toast("Hello, World!")