Software Archive
Read-only legacy content
17061 Discussions

Using cordova-plugin-fcm for iOS builds

Dmitry_P_2
Beginner
403 Views

This plugin cordova-plugin-fcm documentation states the following:

Put the downloaded file 'GoogleService-Info.plist' in the Cordova project root folder.

How can I indicate to XDK to take my local GoogleService-Info.plist file and place it "in the Cordova project root folder" on the build server? The application built using this plugin crashes on the telephone and I suspect that the reason is that this file can't be located.

0 Kudos
1 Solution
PaulF_IntelCorp
Employee
403 Views

Dmitry -- because our build system is cloud-based, you do not have access to those folders. The operation being described by that plugin can only be done if you are using Cordova CLI locally. This is a limitation of a cloud-based build system. That plugin is not going to work with the XDK.

If you want to convert your app to a local CLI project, start with these instructions > https://software.intel.com/en-us/forums/intel-xdk/topic/685326#comment-1885369 < and use this script > https://github.com/xmnboy/xdk-to-cli < to create an equivalent CLI project. Or, start from scratch with Cordova CLI and copy your source files into a new CLI project.

View solution in original post

0 Kudos
4 Replies
Giselle_G_Intel
Employee
403 Views

Dmitry,

You should be adding your plugin in the plugin manager see this link > https://software.intel.com/en-us/xdk/docs/add-manage-project-plugins < halfway down the page you'll see the instructions to add third party plugins in three different ways. However, make sure to check the plugins already in the database, it may be a part of the plugin manager already.

 

0 Kudos
Dmitry_P_2
Beginner
403 Views

I'm not sure I understand how this answers the question..?

0 Kudos
PaulF_IntelCorp
Employee
404 Views

Dmitry -- because our build system is cloud-based, you do not have access to those folders. The operation being described by that plugin can only be done if you are using Cordova CLI locally. This is a limitation of a cloud-based build system. That plugin is not going to work with the XDK.

If you want to convert your app to a local CLI project, start with these instructions > https://software.intel.com/en-us/forums/intel-xdk/topic/685326#comment-1885369 < and use this script > https://github.com/xmnboy/xdk-to-cli < to create an equivalent CLI project. Or, start from scratch with Cordova CLI and copy your source files into a new CLI project.

0 Kudos
Dmitry_P_2
Beginner
403 Views

@Paul - thank you for the answer!

I hate moving away from XDK, it was so good especially for iOS builds. Doing the cordova builds on Mac computers is pure torture, these people can make grown up man cry helpless. You guys should really monetize your build system and move forward, there is nothing like this on the market today. Just saying..

0 Kudos
Reply