Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Cordova Demos

John Feagans edited this page Apr 1, 2015 · 2 revisions

Running the Cordova Plugin File Demo

The Plugin file demo shows two Cordova plugins, the Splashscreen and the file.

The following steps are configuration that is required in your Xcode after you have opened the Cordova Pluginfile Workspace in Demos/Cordova. Do not confuse this with the xcodeproj file in the CordovaPluginFile folder.

  1. File-Workplace-Settings-Advanced. Build location-custom-relative to workspace. No adjustment to the default paths is required after this selection.

  2. Project settings-general remove Launch screen file: main. (We want the plugin to display the launch screen and not the main.storyboard).

  3. Build phase-Copy bundle resources from the Icenium app-resources/ios directory add Default-568h.png, Default-Portrait.png, and Default-Landscape.png. These are the files that the Splashscreen plugin is looking for to display the splashscreen in various iOS targets and orientations. It is not necessary to copy the actual files into the workspace.

  4. Select scheme CordovaPluginMenu either from dropdown or product menu.

  5. Select destination iOS device either from dropdown or product menu.

  6. Build or run if device attached.

At this point the plugin demo will correctly generate the splash screen from the plugin and the file demo from the plugin. It will also work on the simulator if you chose the destination device.

Running the Cordova Plugin Device Demo

Under construction