If you have an element that shares the `name`, like <feature name="SplashScreen">, then the `value` attribute was read of that instead (since it can appear *before* the preference element). Thus, the config of `SplashScreen` preference was not settable at all.
…wn. (closes #47) This is a port of emarashliev's original fix for CB-3562, cleaned up to avoid deprecated functions. Merge branch 'master' of https://github.com/emarashliev/cordova-plugin-splashscreen into CB3562 Signed-off-by: Shazron Abdullah <email@example.com>
The viewController.interfaceOrientation passed to getImageName has not yet been updated with the new orientation, even when the frame/bounds change event has fired. Thus, the plugin never actually loads the correct image for the new orientation. Instead, it poorly scales the existing image. This fix uses the statusBarOrientation property of the UIApplication object to detect the actual orientation, and correctly load the right image. Signed-off-by: Shazron Abdullah <firstname.lastname@example.org>
…se we might as well just have a member variable
There are two aspect ratios for Windows Phone devices: 15:9 and 16:9. At the moment, though, there is only one splash screen by default for WP8 Cordova apps. When stretched to fit all possible resolutions, this can sometimes look bad. WP supports resolution-specific splashscreens, so this commit adds the same support to the splashscreen plugin. It uses the same base name for the splashscreen, but adds modifiers such as ".screen-<res>" based on the device. If a screen-specific image is found, it is used. If not, we fall back to the single default image. Fixes https://issues.apache.org/jira/browse/CB-8750 github close #41 github close #42
When calling hide() from JS, the attempt to access Popup could happen on a background thread, which ends up throwing an UnauthorizedAccessException about cross-thread access. To address this, it's best to check the popup's state from within the UI thread. Fixes https://issues.apache.org/jira/browse/CB-8758
…plashScreen (iOS) are missing
…t template and CLI assume it to be)
…d of null" This reverts commit 1d89a2a. There were some other changes in there that weren't meant to be made!
Added Browser platform support Using cordova/confighelper module to read parameter values from config.xml Updated the docs