This is pretty easy. Usually this will not happen because you add the fourth parameter.
TabBar expects this fourth parameter or null. But the test, if it exists, is buggy.
So just enter the dummy element β {(foo: "bar")} <---
plugins.tabBar.createItem("Advent Calendar", "Sven Elch", "abc.png", { foo : "bar" }
or correction if the condition is in TabBar.m (line 334 or so).
if(options != [NSNull null]) { id badgeOpt = [options objectForKey:@"badge"]; if(badgeOpt && badgeOpt != [NSNull null]) item.badgeValue = [badgeOpt stringValue]; }
source share