I have a pdf file in my res:// folder. Let's call it file.pdf.
The main scene has the following structure:
Control
--Button
with the following code:
extends Control
func _on_Button_pressed():
print("Button Pressed")
var error = OS.shell_open("file.pdf")
if error:
print(error)
else:
print("file.pdf opened")
This works as expected and opens the pdf file on PC (Ubuntu) but doesn't open the file on android.
The debugger outputs:
Button Pressed
19