Devgeeks

  • Archive
  • RSS

PhoneGap Doesn't Suck, *You* Suck!

Slides from my 5 minute lightning talk at MelbJS (http://melbjs.com)

    • #cordova
    • #phonegap
    • #slides
    • #talk
  • 5 days ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

SpiderOak: building a modern performant app with HTML/CSS/JS and Cordova/PhoneGap

Slides from my talk at the Melbourne Mobile meet up - May 21st 2013.

This is my attempt at a non-techical talk about the path that led to the current Android version of the open source SpiderOak mobile client app.

    • #phonegap
    • #cordova
    • #talk
    • #SpiderOak
    • #slides
  • 4 weeks ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

blog.izs.me: Free as in Hugs Licence

izs:

Copyright (c) __AUTHOR_NAME__ (“Author”) and Contributors

All rights reserved.

The “Free as in Hugs” License

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must…

  • 2 months ago > izs
  • 10
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

4ZzZfm app in need of an update

The 4ZzZfm app was my first ever mobile app. It was then my first PhoneGap / Cordova app when I ported it.

It’s in desperate need of an update if for no other reason than that the iOS version does not support the iPhone 5 screen size.

I am thinking of trying to consolidate the codebases (currently it is a codebase for each of its two platforms) and maybe even expand it to cover other platforms beyond iOS and Android.

Questions I am going to have to look at over the next couple of weeks:

  • Does anyone listening to 4ZzZfm want to do so on WP8, BlackBerry or any of the other platforms supported by PhoneGap / Cordova?
  • Do I just use KendoUI and keep it closed source, or do I do a completely custom UI and open source the app? (note: I will only open source it if I can get a real program feed instead of scraping the website like I do now… the current code is embarrassment personified)
  • If I am supporting Android 2.3 (and I am sure I will), how will I handle the fact that it does not support html5 audio… and conversely, the media APIs I use for it are no good for streaming radio on iOS?
  • Are there other features that would be of use to 4ZzZfm?

I’ll try to keep updating the blog as I go with it (since I haven’t been using the blog for anything else lately with Pixfor’s own update on hold).

    • #4ZzZfm
    • #PhoneGap
  • 2 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

photoKandy Studios: Getting Started with Cordova-CLI

A Great intro to the Cordova Command Line Tooling

photokandy:

Cordova-CLI is doing some great things to make working with multiple platforms in one Cordova project easier. But installing with it can initially seem a little daunting if you’ve never played with it before, and so I thought it would help to write this guide up to help anyone else getting their…

    • #PhoneGap
    • #cordova
    • #cli
  • 2 months ago > photokandy
  • 3
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

My slides for the Sensis API Product Hack Camp

  • 6 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Raised center TabBar button in Cordova / PhoneGap for iOS

A popular pattern in iOS lately (especially in apps with a focus on photo taking) is the raised / highlighted middle TabBar button. It’s easy enough to get a native TabBar in an iOS PhoneGap app using one of the two popular plugins (NativeControls and TabBar). There is even a great article on getting a raised middle TabBar button on iOS.

But not everyone using PhoneGap can comfortably turn that article into a modified TabBar plugin. There was even a recent thread on this topic in the PhoneGap Google Group recently.

Since I have done this in one of my apps, I thought I might post a quick outline on how to use the code in the iDevRecipes article above to get one of these buttons into one of the plugins above.

The Button Image

aperture-tab.png

This is the button I created for my app Pixfor. It’s basically just a green tinted screenshot of the middle third of a standard TabBar with an Aperture icon and a subtle shadow. You certainly don’t need to have a tinted gradient as well as your larger icon or whatever. That’s just a design decision. The great thing about how this works is that the touch goes straight through the added UIButton, so the highlight of the TabBar still happens so if your button image has transparency, it will show through nicely.

The button image is named aperture-tab.png and also has a corresponding aperture-tab@2x.png image for retina devices.

Note: these images (unlike the icons normally used in the TabBar plugins as icons) are added to the project through XCode as a resource, not just copied into the www folder with the other PhoneGap assets.

The JavaScript Code

For the JavaScript code, all you really need to do is create a TabBar item with an empty label and an empty icon.

For example, in NativeControls:

window.plugins.nativeControls.createTabBarItem("takepix", "", "", options);

and in TabBar:

window.plugins.tabBar.createItem("takepix", "", "", options);

The Objective-C Code

Pixfor happens to use the NativeControls plugin, but the code below should work in both.

They both have a method in their respective .m files that creates the TabBar (create in TabBar and createTabBar in NativeControls). *

Both these methods end with

[self.webView.superview addSubview:tabBar];

What we are going to do is add the following code directly after this line before the closing brace.

This code will add a custom UIButton using our image centered on our TabBar. Note the file name aperture-tab.png in the first line. The retina @2x version does not need to be explicitly referenced.

Pixfor's raised middle button

And there it is! Our special TabBar button.









* Line numbers only used for illustration. Please find the methods above in the plugin’s latest version.

    • #phonegap
    • #cordova
    • #ios
    • #plugins
    • #Pixfor
  • 6 months ago
  • 1
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

First rejection

So I know I haven’t been posting here much, what can I say?

But I did feel like posting that I have had my first ever rejection experience with the Apple App Store.

An app I have been building for a client got rejected for collecting donations for charity — even though the app did not collect actual money, it merely allowed you to convert points earned in the app to a charitable donation.

The reviewer was very nice about it and offered some suggestions on how to comply with the rules in this area.

Here is where this post turns into a love letter to PhoneGap/Cordova and KendoUI.

The easiest way to comply was to have the actual charitable donation aspect happen on a web site and have the app kick the user out of the app to said web site to complete the donation. If the app had been native I would have had to re-write all my logic and create a web site appropriate for a mobile device, etc. However, since the app was a hybrid app using PhoneGap and KendoUI, all I had to do was copy some of the app into a standalone website using the same UI and the same JavaScript logic. Then I added a button from the website sending the user back to the app using URI schemes in iOS (the Android version of the app can stay how it was).

Like magic, I now have the charitable donations happening on a web site instead of the app, but with very little effort and it even looks the same aesthetically as the app!

The app has been resubmitted and our fingers are once again crossed.

As for the other problem (a lack of decent posts on this blog) I have been storing some up that I did not want to post until this app was finished. They should be coming very soon. I hope. Heh.

    • #phonegap
    • #cordova
    • #ios
    • #apple
    • #kendoui
  • 6 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

the Web, unplugged: There must be something out there?

johnallsopp:

I’ve been developing a workshop focussing on HTML5 app features like UI, localStorage, devicemotion, geolocation, as well a bit of phoneGap, so students can add additional featurs like camera support, and package it all up as an app.

  • 11 months ago > johnallsopp
  • 3
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

I always wanted to be a 1%-er

So I submitted version 1.1 of Pixfor already.





I don’t think that’s the 1% I wanted to be in. *sigh*

    • #Devgeeks
    • #Pixfor
    • #iPhone development
    • #PhoneGap
  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Page 1 of 5
← Newer • Older →

About

Avatar Software development in the minutes a day I have spare

Pages

  • iPhone/iPad apps
  • Android apps
  • PhoneGap / Cordova plugins

Me, Elsewhere

  • @theRealDevgeeks on Twitter
  • devgeeks on github

I Dig These Posts

See more →
  • Post via photokandy
    Getting Started with Cordova-CLI

    Cordova-CLI is doing some great things to make working with multiple platforms in one Cordova project easier. But...

    Post via photokandy
  • Post via taitems
    An Autopsy of a Bad User Experience

    I’d like to take a moment to share a bad user experience with you. Why? I believe it’s important to diagnose the...

    Post via taitems
  • Post via taitems
    More Form Failures

    In the post directly below I discussed the ramifications of bad form design on the overall customer experience. I compared...

    Post via taitems
  • RSS
  • Random
  • Archive
  • Mobile
Effector Theme by Pixel Union