Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New License Activation Process with v3.15.3+ using Expo #108

Open
WilbertJanney opened this issue Feb 23, 2021 · 7 comments
Open

New License Activation Process with v3.15.3+ using Expo #108

WilbertJanney opened this issue Feb 23, 2021 · 7 comments

Comments

@WilbertJanney
Copy link

FusionCharts have changed how the license is activated for v 3.15.3+. I am using 3.16.0. I tried following the instructions at the official documentation page, but I don't see where to put my key when using Expo. I have it working with the trial version at least with the instructions from #2.

Official Documentation

@AyanBhadury
Copy link

@WilbertJanney Please drop a mail to [email protected] with your license details.

@WilbertJanney
Copy link
Author

@WilbertJanney Please drop a mail to [email protected] with your license details.

I emailed them, but they gave me generic React Native instructions. I'm trying to figure out how to make it work with Expo without having to copy over the files from the node modules folder. I might just have to do that if I can't find a way to activate it with less files included in our project.

@AyanBhadury
Copy link

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

@WilbertJanney
Copy link
Author

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

@AyanBhadury
Copy link

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

correct @WilbertJanney

@WilbertJanney
Copy link
Author

WilbertJanney commented Feb 23, 2021

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

correct @WilbertJanney

Well, it looks like I found another solution without having to copy over the assets from the node modules folder. After running this script:
"build:assets": "fc-build-assets --fc-template ./assets/fusioncharts-tpl.html"

I then opened the generated fusioncharts.html and inserted the key at the end of the first <script> tag and that worked!

Edit: I found an even better way! I opened my fusioncharts-tpl.html and then inserted this after the first script tag.

<script type="text/javascript" src="fusioncharts/../../assets/fusioncharts-license.js"></script>

I created a file with the license information in a folder called "assets" in my project, then the fusioncharts-license.js file contains the license like this:

FusionCharts.options.license({ key: '<YOUR KEY>', creditLabel: false, });

Now it's automatically built with the script with no manual editing of the generated fusioncharts.html file.

@WilbertJanney WilbertJanney changed the title New License Activation Process with v3.15.3+ New License Activation Process with v3.15.3+ usinf Expo Feb 23, 2021
@WilbertJanney WilbertJanney changed the title New License Activation Process with v3.15.3+ usinf Expo New License Activation Process with v3.15.3+ using Expo Feb 23, 2021
@AyanBhadury
Copy link

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

correct @WilbertJanney

Well, it looks like I found another solution without having to copy over the assets from the node modules folder. After running this script:
"build:assets": "fc-build-assets --fc-template ./assets/fusioncharts-tpl.html"

I then opened the generated fusioncharts.html and inserted the key at the end of the first <script> tag and that worked!

Edit: I found an even better way! I opened my fusioncharts-tpl.html and then inserted this after the first script tag.

<script type="text/javascript" src="fusioncharts/../../assets/fusioncharts-license.js"></script>

I created a file with the license information in a folder called "assets" in my project, then the fusioncharts-license.js file contains the license like this:

FusionCharts.options.license({ key: '<YOUR KEY>', creditLabel: false, });

Now it's automatically built with the script with no manual editing of the generated fusioncharts.html file.

@WilbertJanney Good to know that the problem is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants