Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Ons-tabbar not working on ios with onsenui from v2.0.0 - 2.0.2
-
Hello,
Using:
OnsenUI: v2.0.0 - 2.0.2
Angular:1.5.8Ons-tabbar is not working on IOS. It worked great on android.
Visit https://codepen.io/cyberbird20/pen/YGgqPk?editors=1010 with an iPhone or safari browser.
Please any fix/hack so I can publish my application because right now I’m working with Onsenui v2.0.0-rc-17.
Thanks
-
@Fran-Diox @munsterlander please I need your assistance. Thanks
-
I’m building an app using:
OnsenUI: always the latest version
Angular: 1.5.8I have had tabbar issues specifically on iOS for MONTHS. After upgrading to 2.0.2 yesterday those issue are finally fixed.
@Fran-Diox says it’s likely because they have updated their polyfill.
Why are you using v2.0.0-rc-17? Have you tried updating to v2.0.2?
-
@Prior-Famous-Ehichioya Sorry for the delay in responding, but I don’t have a mac or iOS device to test right now, so that is why I didn’t respond. I am primarily an Android on Windows developer. I know there were issues with polyfill and createElement which has been resolved in 2.0.2. I would highly recommend using that and updating your CSS files to that as well. If you still have an issue, please let me know and I will go get an iOS device to test on and help you troubleshoot.
-
@Prior-Famous-Ehichioya I just tried that code in iPad safari. I cannot see anything wrong here…
As the other guys said, 2.0.2 should fix all the problems that the polyfill started in the tabbar. We will probably release 2.0.3 today to fix an annoying bug withinit
event as well.
-
@rgins16 @munsterlander @Fran-Diox Thanks for replying. Apologies for the late response.
I tried with 2.0.2 and right now with 2.0.3, It is the same thing.
Test Environment:
Cordova CLI: 6.3.1
IOS platform: 4.2.1
Device: iPhone 5s IOS 10.0.2The tabbar pages is not getting initialized with the Cordova app or when I visit the code pen https://codepen.io/cyberbird20/pen/YGgqPk?editors=1010 with my device.
On my mac, macOS Sierra 10:12 , safari 10.0, I get the following error.
Any ideas what might be causing it?
Thanks again.
-
@Fran-Diox @munsterlander help please
-
@Prior-Famous-Ehichioya There are some issues regarding init in iOS as defined here: https://github.com/OnsenUI/OnsenUI/issues/1597
Unfortunately, I do not dev for iOS, so my access to iOS devices is limited. Apologies.
-
@Prior-Famous-Ehichioya I just tested again on iOS 10 and couldn’t find any issue. Then I thought that maybe this only happens in Codepen…
And yeah, looks like it’s related to the way Codepen includes the external libs. It puts them at the end of the body instead of the head. Working here.Just move your includes to the head and it will work. We will try to fix it so it works also on Codepen but right now I cannot test these stuff properly.
-
Hi men, did you resolve this? i got the same issue in my app but including scripts in header did not resolve this, if you got this let me know please.
Update: Even with Onsen UI 2.0.3 i’m still having this issue.
**Update 2: **I found a weird solution, i put all the <ons-templates> inside a ‘display: none’ DIV and that div put it inside the <ons-tab> directive and it works fine.
-
@Carlos-Mejía Can you post a codepen with your solution so I can take a look at that? Thanks!
-
@munsterlander sure, when i move my includes to header, tabs wasn’t still working, i found the solution doing this https://codepen.io/carlmejia/pen/bwXJbQ?editors=1010 (based on the first question here)
-
@Carlos-Mejía Ok, I see now. Can you confirm if this codepen works? https://codepen.io/anon/pen/jMgoQG?editors=1010
The issue with the style that you have, is that the templates are nested inside of an ons-page and therefore they are trying to be rendered. I have moved them outside of that tag and everything appears to be working on my end, but I want to make sure it works on your devices.