DISQUS

Critter's Code: Push notifications on your iPhone via ColdFusion

  • rudishumpert · 4 months ago
    Verl Cool!
  • rudishumpert · 4 months ago
    Very cool. I will have to check this out.
  • Joel Hill · 4 months ago
    Awsome! I've been waiting for something like this. Thanks!
  • molaro · 4 months ago
    Nice work!
  • Dave Ferguson · 4 months ago
    This is awesome! However, I had to make a couple modifications to support the CF server being behind a proxy server.
  • Critter · 4 months ago
    I saw your added issue. Thanks. I'll make those changes..
  • Dave Ferguson · 4 months ago
    Forgot to mention... Is it possible to get this to work with the growl desktop client?
  • Critter · 4 months ago
    I'm just tied into their external API.. and that just pushes to the Iphone.. probably not with this client..
  • robjshaw · 4 months ago
    also check out http://cfgrowl.riaforge.org/index.cfm my co-developer did this... got it to work via the mac java api to growl via your network/desktop. I use it all the time for letting me know the results of scheduled tasks/server status etc.
  • Critter · 4 months ago
    awesome. I'll definitely give it a look. Thanks
  • jamestanner · 4 months ago
    Im loving the idea of this, however i must be being stupid and missed something as it doesnt work for me ... ColdFusion 8.0.1...

    i edited the example.cfm and changed:

    // connect to the prowl cfc //
    p = createObject(”component”,”ctzprowl”).init(_apikey=apikey, _callto=callto, _providerkey=providerkey, _appname=appname);

    TO:

    // connect to the prowl cfc //
    p = createObject(”component”,”precf9_ctzprowl”).init(_apikey=apikey, _callto=callto, _providerkey=providerkey, _appname=appname);

    But i get an error:
    The value returned from the init function is not of type ctzprowl.

    I have created a prowl account, and obv created my API Key and placed it in the code, but no luck :(

    What i miss!??

    Many thanks in advance for any help :) and thanks for the great script
  • Critter · 4 months ago
    Hey James... easy fix.. the init function is looking for a return type of 'ctzprowl' just rename the file to ctzprowl.cfc and use the line unchanged... and it should work fine for you..
  • jamestanner · 4 months ago
    ahha, thanks for that..... now i get "Variable PRIORITY is undefined" .... however that one i can fix :) just thought id mention it. thankyou
  • Critter · 4 months ago
    thanks.. I'll give it a look.
  • jamestanner · 4 months ago
    I simply added <cfargument name="priority" type="String" required="true" /> underneath <cffunction name="add" access="public" output="false" returntype="struct"> (line 28)

    Next error is Variable WRITEDUMP is undefined, however, the push notification does get sent :)
    (im thinking its because writedump is a CF9 thing!?)

    Many thanks for this... great code!
  • Critter · 4 months ago
    yeah.. totally slipped my mind... it is a cf9 thing.. I'll change it up today..

    thanks, again.
  • Kathy · 4 months ago
    That's interesting, especially given it's ColdFusion :)