Hi,
I have been trying to open a local pdf stored in streaming assets. However when I try to open the file it just loads infinitely.
here is my code:
public void OpenLocalPdf(string path)
{
#if (UNITY_IOS || UNITY_ANDROID) && !UNITY_EDITOR
InAppBrowser.OpenLocalFile(path);
Debug.Log("Opened!" + path);
#else
Debug.LogWarning($"Attempted to open '{path}' in InAppBrowser, but that " +
$"only works on iOS and Android, not in Editor or on desktop");
#endif
}
Receiving the path from an on click event or writing it directly in the script produces the same result.