- Posts: 39
- Thank you received: 0
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, Xamarin, Basic4Android topics are listed here.
Cordova and forms editing
- Marat Faskhiev
- Topic Author
- Offline
- Junior Member
-
Less
More
9 years 4 months ago - 9 years 4 months ago #11943
by Marat Faskhiev
Replied by Marat Faskhiev on topic Cordova and forms editing
Hi,
I have an issue with trial license activation at iOS. I'm receiving the following error:
License NOT activated.
Code:
Bundle indentifier is com.radaee.reader
Could you help me to resolve this issue?
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.
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
you should fix the bundle id, that is "com.radaee.pdf.PDFViewer" for iOS
- Marat Faskhiev
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 0
9 years 4 months ago #11959
by Marat Faskhiev
Replied by Marat Faskhiev on topic Cordova and forms editing
Hi,
I receive the same error message after renaming.
Here is an ios project: dl.dropboxusercontent.com/u/43914124/ios.zip
I receive the same error message after renaming.
Here is an ios project: dl.dropboxusercontent.com/u/43914124/ios.zip
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).
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).
- Marat Faskhiev
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 0
9 years 4 months ago - 9 years 4 months ago #11970
by Marat Faskhiev
Replied by Marat Faskhiev on topic Cordova and forms editing
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:
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
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.
Time to create page: 0.490 seconds