-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StatusBar plugin #1
Comments
I didn't change anything related to that. Please try the latest version of Telerik, which my fork is based on, and if still getting the same issue, file an issue with them. |
Hi Ronen, I'm using this package: cordova:com.meteor.cordova-update@https://github.com/practicalmeteor/com.meteor.cordova-update/tarball/a7e98f27a26b727288da81dcfd8047eccb5f6036. From your blog post. I think thats the latest commit (also the latest on the repository). And the latest update off this repository's package too (which uses https://github.com/practicalmeteor/WKWebView' (Latest commit: practicalmeteor/WKWebView@4a1d577) |
Actually I tried to reproduce this & it looks ok on a blank project. So i'll have to investigate a bit deeper why its doing this. |
OK, I think I've found a way to make the issue reproducible. It's a bit odd to be honest.
Edit the test.js file and add this between
Then run it (This works).
This doesn't work
Xcode will open, upon which you can run the app using the simulator. These hint it may be a meteor-related issue not a telerik issue |
Hey, this seems to have nothing to do with my package. It seems that meteor or cordova generates or overwrites the cordova config.xml differently between run ios and run ios-device. I recommend just creating your own config.xml (copy it after doing a meteor build) and save it in cordova-build-override. It may also be that the emulator run ios uses is different than the one you run with run ios-device. |
@rbabayoff I don't think that's what's happening because the config.xml file seems to be identical. Do you have any other idea? @rbabayoff @Tarang
Has functions that you can use about the status bar. For example, I was able to set the background of my statusbar using |
Sorry, I don't. I'm waiting myself for cordova 5 support in meteor's next
release so I can merge telerik's upstream that includes quite a few bug
fixes, but their latest commits broke compatibility with cordova 4.2 which
is what meteor uses in current version.
|
According to the last answer to meteor/meteor#4918 the cordova version will be upgraded to 5.2 really soon. Does thet mean all the problems might be resolved? |
I due hope :-)
|
I'm getting the light gray bar that @Tarang pictured, both with
@rbabayoff Thanks a whole lot for this package, btw. While it didn't help much with Blaze's renderer scripting speed, it brought my memory down from 140MB base, 240MB peak (which causes iOS to kill it [1]) to 5MB base, 9MB peak. [1] http://stackoverflow.com/questions/30813443/how-can-you-control-memory-usage-in-cordova |
Actually, I'm getting memory warnings (precursor to getting killed by OS) at 5MB, so I think WKWebView memory must not be included in this chart: Some other observations:
|
@lorensr Do you not have any keyboard issues when you use Wkwebkitview? I gave up using it for now because I couldn't get it working. What did you change to make it work? Did you comment out everything inside |
Just found an issue, actually. What problems did you have? So what I had was these two functions: window.addEventListener 'native.keyboardshow', (e) ->
# change height/scroll based on e.keyboardHeight
window.addEventListener 'native.keyboardhide', (e) ->
$('body').height '100%'
$('main').height '' When I switched to WKWebView, I no longer needed the height changing. However, when I focused a |
For me, it's mostly vertical position problems. Calling |
@lorensr To see your total mem consumption go to xcode -> Open Developer Tool -> Instruments. Click start recording, and then you'll be able to see the apple webkits memory consumption next to yours. I usually sit at around 90 megs, and it will slowly climb. So, slight improvements for me. |
Thanks, will do that when I switch back! |
The statusbar plugin has a few issues.
It seems to work on the original telerik plugin: Telerik-Verified-Plugins/WKWebView#20
I set
App.setPreference('StatusBarOverlaysWebView', 'true');
and it does seem to work from the looks of it (in terms of how much the webview have been shifted down- it hasn't been shifted down)Yet there is a white bar at the top overlaying everything. I'm not sure where it comes from
The text was updated successfully, but these errors were encountered: