Distribution Key in the electron

Posted by: afriedman on 6 July 2018, 3:18 pm EST

  • Posted 6 July 2018, 3:18 pm EST

    Hi,

    We are using standard Wijmo 5 - Base Product components in the electron app.

    We want to install Wijmo components via npm.

    My question is, what domain do I use to create a distribution key? Since our app is an Angula SPA, hosted inside the electron shell.

    https://electronjs.org/ is what I am refering to, in case unfamiliar with electron.

  • Posted 9 July 2018, 6:22 am EST

    Hi,

    This issue has been forwarded to the concerned team. We will let you know as we get an update on this.

    ~Manish

  • Posted 9 July 2018, 8:52 am EST

    Electron apps run under the “file” protocol, so there’s no real domain.

    Wijmo understands that and does not check the license domain in this case.

    Bottomline is electron apps can use wijmo keys generated for any domain (e.g. “localhost”, or your company name for example).

    Here’s a short sample I used to double-check this:

    // import Wijmo
    var wjCore = require('./node_modules/wijmo/wijmo.js');
    var wjGrid = require('./node_modules/wijmo/wijmo.grid.js');
    var wjChart = require('./node_modules/wijmo/wijmo.chart.js');
    
    // set the license key (the domain info will not be used)
    var key = 'GrapeCity-Internal-Use-Only,392619583864964#B0xJ9b...';
    wjCore.setLicenseKey(key);
    
    // create the controls
    var theGrid = new wjGrid.FlexGrid('#theGrid', {
        itemsSource: getData()
    });
    
    

    The app ran without a nag screen and without a watermark.

    I hope this information helps.

Need extra support?

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

Learn More

Forum Channels