How to access wijmo.setLicenseKey in Angular 2 (v5) Applications

Posted by: ssmith on 5 April 2018, 3:57 pm EST

    • Post Options:
    • Link

    Posted 5 April 2018, 3:57 pm EST

    The new Distribution licensing for Wijmo requires that we call the following:

    wijmo.setLicenseKey("...code-here...")
    
    

    However nowhere is there a mention of what import is required in an Angular 2 (v5) application in order to expose the setLicenceKey function.

    What is the appropriate import?

    import { WhereIsSetLicenseKey } from 'wijmo???/wijmo???';
    
    

    Thanks,

    Steve

  • Posted 8 April 2018, 8:30 pm EST

    Hi Smith,

    We are glad that your issue has been resolved.

    The usual way is as following in which we used other Wijmo methods;

    import * as wjcCore from 'wijmo/wijmo';
    wjcCore.setLicenseKey('your license key goes here...');
    

    Please refer to the documentation for more detail:

    http://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/static/licensing.html

    ~Manish

  • Posted 14 August 2018, 1:51 am EST

    Hi,

    We are sorry for the inconvenience.

    Could you please let us know how you are setting license for your application?

    Using Script or Using Module

    Also, could you please share the screenshot for the message and elaborate when you are getting this issue.

    Ps: Please remove the key…

    ~Manish

  • Posted 15 August 2018, 2:10 am EST

    Dear Manish

    It has been resolved, I was using the evaluation version, I removed the links to the Evaluation version and installed wijmo using npm and then set the License key and it all worked.

    wjcCore.setLicenseKey(‘your license key goes here…’);

  • Posted 7 August 2019, 3:41 am EST

    I don’t know if it changed with the latest versions, but the second option at the Licensing page (https://www.grapecity.com/wijmo/docs/GettingStarted/Licensing) worked for me, but with a small change:

    import * as wjcCore from '@grapecity/wijmo';
    ...
    wjcCore.setLicenseKey('xxx');
    

    On the documentation, the import is from ‘wijmo/wijmo’.

  • Posted 7 August 2019, 3:45 pm EST

    Hi Marcos,

    Thank you for reporting the issue and we are sorry for the inconvenience caused. We have forwarded the issue to the concerned team.

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels