Copy link to clipboard
Copied
I need to open acrobat reader in xamarin forms ios project. I tried this code but getting errors. I just need to know is this command correct or not.
var url = new NSUrl($"adobereader:{filePath}");
UIApplication.SharedApplication.OpenUrl(url);
Copy link to clipboard
Copied
Someone else posted a similar question but what puzzled me then (and now) is how Reader could possibly read a file inside your app’s Sandbox. I do not see how this could work even in theory.
Copy link to clipboard
Copied
My document is inside the icloud
Copy link to clipboard
Copied
Can the Reader app open the file from iCloud directly?
Copy link to clipboard
Copied
I am getting this error when trying to open it from adobe acrobat reader.
Could not initialize an instance of the type 'Foundation.NSUrl': the native 'initWithString:' method returned nil.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
Copy link to clipboard
Copied
Do you mean you are trying to open the iCloud file from within the Acrobat Reader's own app user interface, when you get this error?
Or do you get it when your app attempts to send a URL?
Copy link to clipboard
Copied
in my own app error this is. i am using xamarin forms(ios)
This is the code i am using to open file
var url = new NSUrl($"adobereader:{filePath}");
UIApplication.SharedApplication.OpenUrl(url);
Copy link to clipboard
Copied
So, can you open this iCloud file from the Acrobat Reader app directly, using the user interface?
This is an important test. Clearly you will not be able to automate what you cannot do in the user interface.
My advice anyway is to use Send To instead.