Commit Graph

58 Commits

Author SHA1 Message Date
Jesse MacFadyen 3a79663680 CB-9750 FadeSplashDuration is now in msecs 2015-10-05 17:46:12 -07:00
Jesse MacFadyen 2b5187b909 fix formatting 2015-10-05 17:20:57 -07:00
Jesse MacFadyen fb0764c528 CB-8875 FadeSplashScreen was not fading 2015-10-05 16:34:49 -07:00
Shazron Abdullah f4a92d21ff CB-9327 - Splashscreen not receiving CDVPageLoadNotification 2015-07-07 18:17:07 -07:00
Roel van Uden ac23964ac6 WP8: Avoid config value of a wrong element.
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.
2015-06-22 11:50:07 +02:00
Dan Polivy 52c025bbef CB-3562: Disable screen rotation for iPhone when splash screen is shown. (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 <shazron@apache.org>
2015-05-11 23:59:44 -07:00
Dan Polivy 87f3c3a3ac CB-8988: Fix rotation on iOS/iPad (closes #46)
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 <shazron@apache.org>
2015-05-11 17:46:58 -07:00
Joe Bowser 6cc3d1f3fe CB-8904: Don't reset the static variable when it's destroyed, otherwise we might as well just have a member variable 2015-05-07 15:59:39 -07:00
sgrebnov 00e8999eeb CB-8750 [wp8]: Rewrite resoultion helper 2015-04-25 14:56:39 -07:00
sgrebnov 9549ce3a9d CB-8750 [wp8]: Allow resolution-specific splashscreen images
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
2015-04-25 14:55:21 -07:00
Dan Polivy 62e92afae8 CB-8758 [wp8]: UnauthorizedAccessException on hide()
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
2015-04-25 14:32:17 -07:00
Shazron Abdullah 559b300d29 CB-8836 - Crashes after animating splashscreen 2015-04-09 14:07:18 -07:00
Andrew Grieve 35272415d3 CB-8753 android: Fix missing import in previous commit 2015-04-07 20:37:06 -04:00
Alex Talis dd9c88204c CB-8753 android: Adds SplashMaintainAspectRatio preference (close #43) 2015-04-07 10:55:23 -04:00
Andrew Grieve 9b3f750085 CB-8345 Make default for splashscreen resource "screen" (which is what template and CLI assume it to be) 2015-03-30 09:48:04 -04:00
Andrew Grieve ba6730e594 Revert "CB-8345 android: Make "splash" the default resource ID instead of null"
This reverts commit 1d89a2aa1b.
There were some other changes in there that weren't meant to be made!
2015-03-30 09:47:00 -04:00
Andrew Grieve 1d89a2aa1b CB-8345 android: Make "splash" the default resource ID instead of null 2015-03-24 14:50:09 -04:00
daserge bb65993a51 CB-7964 Add cordova-plugin-splashscreen support for browser platform
Added Browser platform support
Using cordova/confighelper module to read parameter values from config.xml
Updated the docs
2015-03-18 16:01:31 +03:00
Jesse MacFadyen 5afde1c62f [wp8] oops, Added back config parse result checks 2015-03-10 15:03:39 -07:00
Jesse MacFadyen 6b1e72c631 [WP8] code cleanup, minor refactors, comments to clarify some stuff. 2015-03-10 14:27:29 -07:00
Jesse MacFadyen 98edfeb73e Merge branch 'galexandrov/wp8-fixes' of https://github.com/Icenium/cordova-plugin-splashscreen 2015-03-10 12:53:16 -07:00
Georgi Alexandrov 688b138e31 Extend WP8 Splash Screen to respect SplashScreen and SplashScreenDelay preferences from config file 2015-03-09 14:30:14 +02:00
Andrew Grieve c3a5867c81 CB-8351 ios: Stop using deprecated IsIpad macro 2015-01-27 10:20:17 -05:00
Andrew Grieve e86a9cc7a4 CB-8280 android: Don't apply SplashScreenDelay when .show() is called explicitly 2015-01-19 13:39:55 -05:00
Andrew Grieve e320e2504a CB-8079 Use activity class package name, but fallback to application package name when looking for splash screen drawable 2014-12-10 21:18:00 -05:00
Andrew Grieve e593fe3f53 CB-3679 Make SplashScreen plugin compatible with cordova-android@4.0.x 2014-12-10 16:09:54 -05:00
Andrew Grieve 50e4887aa1 CB-3679 Break Android splashscreen logic into splascreen plugin 2014-12-10 15:37:15 -05:00
Shazron Abdullah d2e62a551c CB-7204 - Race condition when hiding and showing spinner (closes #21) 2014-10-13 16:11:42 -07:00
Nic Mulvaney 2f37eed184 Fix for portrait/landscape detection
Sometimes the width can be 568 or 320 depending on orientation on iPhone 5. This fixes the detection.

Signed-off-by: Shazron Abdullah <shazron@apache.org>
2014-10-13 16:03:33 -07:00
Shazron Abdullah 24e6f2e0dd CB-7633 - (Re-fix based on updated unit tests) iPhone 6 Plus support 2014-10-01 13:59:22 -07:00
Shazron Abdullah 55722de1c4 CB-7633 - Add support for iPhone 6/6+ 2014-09-30 17:52:30 -07:00
Shazron Abdullah 0ffe1c2d46 Added failing iPhone 6/6 Plus tests. 2014-09-30 16:59:47 -07:00
Shazron Abdullah d85c6a9359 CB-7663 - iOS unit tests for splash screen 2014-09-29 17:33:50 -07:00
Shazron Abdullah fcd628ffc9 CB-7663 - prep for unit tests 2014-09-29 14:03:58 -07:00
Michael Hoisie cd61952efc CB-7041 ios: Fix image filename logic when setting the iPad splash screen
When running Cordova apps without orientation lock on iPads, the
Splash Screen plugin didn't work properly. It would skip the iPad-
specific splash screen logic, and just select the image named
@"Default.png" (without adding the orientation suffix), and print
the following messages in the console:

WARNING: The splashscreen image named Default was not found

Now, for iPads, the splash screen image is set by first looking
at the position of the orientation lock, and if that is not set, it
uses the calculated view orientation.

close #19
2014-06-27 14:56:49 -04:00
Nadya Atanasova 1f50d90d9e fixes Splashscreen crash on WP8
The UI elements cannot be accessed from any other than the UI thread directly. So, enclose UI access code in the Dispatcher.BeginInvoke()
2014-06-19 16:55:35 +04:00
Jesse MacFadyen 988517df7f [wp] implemented OnInit so splash screen can be shown before cordova page is loaded 2014-05-29 17:41:49 -07:00
Ian Clelland f46aae1075 CB-6465: Add license headers to Tizen code 2014-04-17 09:50:57 -04:00
Shazron Abdullah e3e3996766 CB-4051 - Re-fix - Splashscreen rotation problem (closes #13) 2014-03-19 18:28:52 -07:00
Anis Kadri 61a7a6d3df Merge branch 'tizen' of http://github.com/siovene/cordova-plugin-splashscreen into dev 2014-01-27 17:33:40 -08:00
Michael Hanselmann 75327c88e4 [CB-3562] Fix aspect ratio on landscape-only iPhone applications
The splash screen is shown with a faulty aspect ratio for landscape-only
applications on iPhone/iPod touch devices. This is fixed by applying
a 90° rotational transformation.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2014-01-15 16:33:32 -08:00
Sean Bollin 424e82cde4 CB-4051 fix for splashscreen rotation problem 2014-01-07 14:35:25 -08:00
Nathan Peles d799eda020 Handle error when splash image is missing.
From pull request:
https://github.com/apache/cordova-plugin-splashscreen/pull/1
2013-12-06 14:38:28 -05:00
Gabriel Schulhof 8dc057b796 Proxy: Correct structure, and only ever create one splashscreen window. 2013-11-19 14:01:56 +02:00
Salvatore Iovene cf7c35d399 Fix syntax errors. 2013-11-19 13:11:32 +02:00
Salvatore Iovene 3a1810baa5 Native Tizen implementation of SplashScreen API. 2013-11-19 12:55:35 +02:00
Salvatore Iovene 9ebd08f69b Add tentative Tizen implementation. 2013-11-19 12:43:12 +02:00
Maxim Ermilov 6c12ea4380 add ubuntu platform 2013-10-16 22:16:33 +04:00
Shazron Abdullah c2dea2fc02 [CB-4806] (Re-fix) Update splashscreen image bounds for iOS 7 2013-10-01 13:26:05 -07:00
Shazron Abdullah 1111c8b3b9 [CB-4806] Update splashscreen image bounds for iOS 7 2013-09-16 17:26:48 -07:00