Open dlungor opened 3 years ago
I'm assuming that pathToAttachment resides in either persistentDataPath or temporaryCachePath, as it should. Do you get the same error on other Android 11 devices/emulators? Do other free solutions like this also suffer the same issue?
On another android 11 devices/emulators the same issue.
Path generated like this:
private static string GenerateNewFilePath(string extension)
{
return $"{Application.persistentDataPath}/{GenerateNewFileName(extension)}";
}
Another solutions doesn't try yet
On android 10 all ok.
Please let me know when you try other free solutions.
Description of the bug
Gmail say's me "Couldn't attach file". Only on 11 android. I'm using it like this.
new NativeShare().AddFile(pathToAttachment).Share();
Reproduction steps
If possible, providing reproduction steps would be very helpful while pinpointing the issue. You can also post screenshots if you think they would be helpful.
Platform specs
Please provide the following info if this is a Unity 3D repository.
Additional info
Android manifest: