Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

TOPIC:

Cordova and forms editing 7 years 1 month ago #11943

  • Marat Faskhiev
  • Marat Faskhiev's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 39
  • Thank you received: 0
Hi,

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

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: by Marat Faskhiev.
The topic has been locked.

Cordova and forms editing 7 years 1 month ago #11953

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

you should fix the bundle id, that is "com.radaee.pdf.PDFViewer" for iOS
The topic has been locked.

Cordova and forms editing 7 years 1 month ago #11959

  • Marat Faskhiev
  • Marat Faskhiev's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 39
  • Thank you received: 0
Hi,

I receive the same error message after renaming.
Here is an ios project: dl.dropboxusercontent.com/u/43914124/ios.zip
The topic has been locked.

Cordova and forms editing 7 years 1 month ago #11966

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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: 'This email address is being protected from spambots. You need JavaScript enabled to view it.',
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).
The topic has been locked.

Cordova and forms editing 7 years 1 month ago #11970

  • Marat Faskhiev
  • Marat Faskhiev's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 39
  • Thank you received: 0
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:
        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: by Marat Faskhiev.
The topic has been locked.

Cordova and forms editing 7 years 1 month ago #11971

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

we fixed an issue on file path management on iOS.
Now you can download the updated Cordova plugin and open the file correctly
The following user(s) said Thank You: Marat Faskhiev
The topic has been locked.
Powered by Kunena Forum