cordova-statusTap
cordova-statusTap copied to clipboard
Event doesn't fire when the statusbar is hidden and then shown
I use a status bar plugin that hides/shows the status bar to fix iOS7 issues and this plugin doesn't work if the status bar is initially hidden. The fix for it however, is really simple.
In the .js file I replaced line 6 with the following: setTimeout(function () { exec(null, null, "TapToScroll", "initListener",[]); }, 250);
This gives the status bar plugin time to show itself before initializing the tap plugin.
O actually its easier than that on the objc side we use status bar layer and positioning when we add our tap detection window we could just infer that rather than wait for status bar
Sent from my iPhone
On Oct 31, 2013, at 6:25 PM, camdagr8 [email protected] wrote:
I use a statusbar plugin that hides/shows the status bar to fix iOS7 issues and this plugin doesn't work if the statusbar is initially hidden. The fix for it however, is really simple.
In the .js file I replaced line 6 with the following: setTimeout(function () { exec(null, null, "TapToScroll", "initListener",[]); }, 250);
This gives the statusbar plugin time to show itselfe before initializing the tap plugin.
— Reply to this email directly or view it on GitHubhttps://github.com/j-mcnally/cordova-statusTap/issues/10 .
Any update on a proper fix for this? The JS setTimeout works but feels hacky.
I've recently tried the setTimeout and that doesn't work for me anymore.