Software Archive
Read-only legacy content
17061 Discussions

the third-party plugin install problem

ko_i_
Beginner
600 Views

I install the third-party plugin, build log is displayed  [******* installed]. That means the third-party plugin is installed successfully.

BUT,   When I use the third-party plugin and it did not work AND I asked the third-party plugin's author the answer is 'the plugin is not installed correctly'.

SO, I want to know that the plugin is really installed successfully.

------------------------------------------------------------------

PS:

I use this plugin

https://github.com/xu-li/cordova-plugin-wechat.git

------------------------------------------------------------------

0 Kudos
5 Replies
Amrita_C_Intel
Employee
600 Views

Hello,

Which XDK version are you on?

Can check the Cordova CLI version under build settings? Which version it is?

How are you trying to include plugin? Through git repo, import locally or cordova option?

0 Kudos
Amrita_C_Intel
Employee
600 Views

When I was adding this plugin through git repo(third party plugin). I was able  to add plugin but it requires wechat app id. Hope you are including that. I am using XDK 2496

0 Kudos
Anusha_M_Intel1
Employee
600 Views

Hi Ko,

Did the build succeed? Third party plugins will not work on the emulator or app preview. The only way to test them is to either build a custom debug module to test on device (or) test the built app on your device. 

0 Kudos
ko_i_
Beginner
600 Views

Hi Amrita C. (Intel)Anusha Muthiah (Intel),

Thank you for your reply~~~

1. My XDK version is 2366.

2. Cordova CLI version is 4.1.2

3. I have included the plugin and the problem is same.

4. I had the web app id : wx9f498360fa49d333

5. I test the plugin code on real device, I know that did not work in emulator or app preview.

I was trying to update my XDK, there was no update button. (yesterday it update failed, the update button dispeared...)

 

 

0 Kudos
Anusha_M_Intel1
Employee
600 Views

@Ko,

Try doing a fresh install of the new release v2496. The whole process of adding plugins, specifying plugin variables is all much simpler there. You can also test if the plugin works by building a custom debug module that support third party plugins testing. I noticed there is a temporary issue with doing a custom debug module with the wechat plugin. I have escalated this to engineering. But you can still build the app to test. Try doing a plugin call to see if it works. 

When you upgrade to 2496, you should know that your app settings will change. It is best to take a backup of your existing project so you can always revert if you want to. You can read up on Q34 here: https://software.intel.com/en-us/xdk/faqs/general on how to make a copy of an existing Intel XDK project. This way you can have two versions of your project - One upgraded and one not upgraded. Or simply copy paste existing project in another location so you can import if you want to. Make sure your projects directory is in the same drive as your XDK installation. 

0 Kudos
Reply