Bad behavior from Pasteboard plugin on Android

I have been able to confirm in my apps that when using the plugin.pasteboard, the first time the app is opened (this does not happen in subsequent sessions), in the scene where the plugin is required (local pasteboard = require("plugin.pasteboard")), the app displays a toast notification saying “MyAppName pasted from your clipboard.

This message suggests that the app is reading information from the clipboard, when in reality it is simply loading the plugin at that moment. This behavior is critical for our apps, as I already received a complaint from a user claiming that my app was reading clipboard information and could potentially steal sensitive data (without their consent), such as their credit card number, address, etc. I do not know how to fix this issue since Solar2D does not provide any information about it.

This behavior only occurs on Android.

It seems like the issue arises from the plugin being loaded on the first app launch, triggering an unintended clipboard access notification. To address this, you may want to delay the plugin loading until it’s needed, or suppress the toast notification during initialization. It’s important to ensure that users are not misled into thinking their clipboard is being accessed without their consent.

By the way, if you’re a fan of multiplayer games, check out my website for exciting updates on Car Parking Multiplayer – a thrilling game where you can enjoy realistic parking challenges and more!