0 votes
Hi, I've been using this asset for a while now.

I'm on Unity 2017.3.0 / Windows.

I'm struggling with the stupidest error :

When the Platform is set to Android I cannot compile, the error is :

`IndieYP.PDFReader' does not contain a definition for `OpenDocInWebViewLocal'

And I dont get it, since IT DOES

Anyway, good plugin, thanks for the time
asked Feb 25 by eafzzf (120 points)

1 Answer

0 votes

Hello method "OpenDocInWebViewLocal" only work on iOS, if you switch to android platform separate method on compile stage like this:

#if UNITY_IPHONE

void OnOpenInWebViewLocalBtnClick ()

{

PDFReader.OpenDocInWebViewLocal (streamingPdf, "Unity Test", "Back", true);

}

#endif

answered Feb 25 by IndieYP (1,730 points)
Welcome to IndieYP Q&A, where you can ask questions and receive answers from other members of the community.
27 questions
23 answers
42 comments
1,529 users