We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast to have color.
No color or styling.
Example: Samsung XCover 5
Example: Android 12++
deviceready
window.onerror
Use android version 12 or higher
function showGreenToast(message) { hideToast(); vibrateDevice([50, 100, 50], showToast(message, '#008000', 'short', 'bottom')); } function showToast(message, bgColor, duration, position) { window.plugins.toast.showWithOptions( { message: message, duration: duration, // ms position: position, addPixelsY: -40, // (optional) added a negative value to move it up a bit (default 0) data: { foo: 'bar' }, // (optional) pass in a JSON object here (it will be sent back in the success callback below) styling: { opacity: 0.8, // 0.0 (transparent) to 1.0 (opaque). Default 0.8 backgroundColor: bgColor, // make sure you use #RRGGBB. Default #333333 textColor: '#FFFFFF', // Ditto. Default #FFFFFF textSize: 18, // Default is approx. 13. cornerRadius: 16, // minimum is 0 (square). iOS default 20, Android default 100 horizontalPadding: 20, // iOS default 16, Android default 50 verticalPadding: 16, // iOS default 12, Android default 30 }, }, function (result) { if (result && result.event) { // touch to hide toast if (result.event === 'touch') { hideToast(); } } } ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behaviour
Toast to have color.
Actual behaviour
No color or styling.
I'm seeing this behaviour on
Hardware models
Example: Samsung XCover 5
OS versions
Example: Android 12++
I'm not a dummy, so I've checked these
deviceready
to fire.window.onerror
catches nothing).So how can we reproduce this?
Use android version 12 or higher
The text was updated successfully, but these errors were encountered: