New AvidTap app update based on Cordova 3.1

Here at AvidTap we’ve been preping a new set of native app updates based on Cordova 3.1.0 since Oct. I recently unleashed both the Android and iPhone apps last week. This new update brings the Bluetooth LE / iBeacon support I talked about before. Watch out for us beginning to roll that out to stores in the new year.

During the time when we were updating our project to Cordova 3.1, Google released Android KitKat. Fortunately, Cordova 3.1 supports this new Android version. We also wanted to update the app for iOS 7 support.

Coming from Cordova version 2.2 and jumping to version 3.1 is a big leap. v3.1 brings many new things. In particular I love the fact Cordova is consolidating more and more of the different platforms together via the creation of cordova-cli, the new plugin system, and all the effort in a common js base.

I love the speed at which Cordova is improving. There has been tons of improvements since I wrote the virtual store app. There has been tons of improvements just in the year after I started AvidTap alone. AvidTap’s release speed for AvidRegister is amazing too. We average 3.61 days between releases to Play Store. Talk about rapid improvements.

New Plugins

The new plugin system is great and will make things more plug & play. For our release, I wrote a bunch new plugins based on the new format. These plugins include:

iOS 7 Status Bar

On iOS 7 the app can take over the area underneath the status bar too. There are many suggestions on the Internet for how to fix that in MainViewController.m. However, I found that they don’t work for AvidTap’s app. I mainly saw issues whenever we have some sort of plugin that navigates out of the app and come back. The following code is what I wrote to simulate the 20px status bar and have it work correctly in all situations including when navigating out of the app and come back.

- (void)viewDidLoad
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    // On iOS 7, simulate a status bar taking 20 px space like in earlier iOS versions.
    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
        self.view.backgroundColor = [UIColor blackColor];
        [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
        self.webView.frame = CGRectMake(0, 20, self.webView.frame.size.width, self.webView.frame.size.height - 20);

That said, there’s now a new plugin for iOS status bar, so probably try that first. At the time I did the upgrade there was no such plugin. I will investigate upgrade to that plugin in the future.

App Store Approval

Apple seems to have made improvements to app approval speed since I last submitted an update. The AvidTap update was approved in about 3-4 days. That’s way way better than the 2 weeks I had to wait for’s virtual store app.