Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

Cordova and forms editing

More
9 years 4 months ago - 9 years 4 months ago #11943 by Marat Faskhiev
Hi,

I have an issue with trial license activation at iOS. I'm receiving the following error:
License NOT activated.

Code:
Code:
RadaeePDFPlugin.activateLicense({ licenseType: 0, //0: for standard license, 1: for professional license, 2: for premium license company: '', //the company name you entered during license activation email: '', //the email you entered during license activation key: '' //you license activation key }, function(message) { // Callback for successful opening. alert('Success: ' + message); }, function(err){ // Callback in case of error. alert('Failure: ' + err); });

Bundle indentifier is com.radaee.reader

Could you help me to resolve this issue?
Last edit: 9 years 4 months ago by Marat Faskhiev.
More
9 years 4 months ago #11953 by emanuele
Replied by emanuele on topic Cordova and forms editing
Hi,

you should fix the bundle id, that is "com.radaee.pdf.PDFViewer" for iOS
More
9 years 4 months ago #11959 by Marat Faskhiev
Hi,

I receive the same error message after renaming.
Here is an ios project: dl.dropboxusercontent.com/u/43914124/ios.zip
More
9 years 4 months ago #11966 by emanuele
Replied by emanuele on topic Cordova and forms editing
Hi,

now the bundle id is correct, but you have to use some parameters in RadaeePDFPlugin.activateLicense method to activate the license.
The comment shows what you should use (company name, email, license key).
Anyway, after you call RadaeePDFPlugin.activateLicense, you have to call also one of the listed method to open a pdf file, but in your project this step is missing.
To check the SDK with a demo license, you can use this data:
licenseType: 2,
company: 'Radaee',
email: '[email protected]',
key: '89WG9I-HCL62K-H3CRUZ-WAJQ9H-FADG6Z-XEBCAO'

But you also have to use an opening method to show the pdf (if you call an open method with an invalid license, you will be able show the pdf but with a demo watermark).
More
9 years 4 months ago - 9 years 4 months ago #11970 by Marat Faskhiev
Thank you. I was able to activate the license. But now I receive the following error when I'm trying to open existent file at iOS: "File not found"

Here is the code:
Code:
fileTransfer.download( 'https://dl.dropboxusercontent.com/u/43914124/File.pdf', path, function () { // I'm trying to resolve path to be sure that file exists. window.resolveLocalFileSystemURL(path, function(fileEntry) { alert(fileEntry.nativeURL) RadaeePDFPlugin.open({ url: fileEntry.nativeURL }, function (message) { alert(message); }, function (error) { alert(error.errorMessage); }); }, function (error) { alert(error); }); }, function(error) { alert(error); });

The similar code works fine at android.
Link to the project: dl.dropboxusercontent.com/u/43914124/ios.zip
File path: file:///var/mobile/Containers/Data/Application/22564AC0-D501-4B4F-B49D-E6ACAA91DA99/Library/NoCloud/Pdf/test.pdf
Last edit: 9 years 4 months ago by Marat Faskhiev.
More
9 years 4 months ago #11971 by emanuele
Replied by emanuele on topic Cordova and forms editing
Hi,

we fixed an issue on file path management on iOS.
Now you can download the updated Cordova plugin and open the file correctly
Time to create page: 0.490 seconds
Powered by Kunena Forum