Jump to content

WHMCS iPhone PUSH Notifications!


Recommended Posts

After stressing with the fact that iWHMCS doesn't support PUSH notifications, I went and wrote a hook to do so...

 

All you need to do is purchase an App called 'Prowl' I don't want to give the URL, incase I get marked for advertising, but search the App Store for something called Prowl. It's like a version of Growl for iOS. SUPER EASY to set up:

 

 

  1. Once you have the app, Prowl, you'll need to create an account on their website and then login on your iPhone. This will assign your iPhone device to your account. You only ever have to log in once.
  2. Go to their web site again, and generate an API Key. This is needed to tell WHMCS which devices to send the PUSH notification to. Copy & paste that key somewhere safe for the time being.
  3. Download the integration here: http://b-digital.biz/members/dl.php?type=d&id=40
  4. Upload the files to your WHMCS Includes folder & one to your Hook folder
  5. Edit the configuration & add your API Key that you got from their web site.

That is it!

 

You can configure the PUSH notifications:

 

  • Change the text for notifications - Merge fields are available
  • Enable or disable them
  • Change the TONE on your iPhone when a notification is received. Eg, loud tone for support tickets.

I think this App is one of the best & most useful I have ever purchased. :)

 

I'll hapilly answer any questions you may have on the forums, but please don't send support requests to my website, as this hook is free of charge.

 

FAO Devs: It's not a module, it's a hook. I started writing it as a hook, then didn't stop to change it to a module. It would be better suited as a module, but I don't have the time to convert it. Anyway, the end result is the same. :)

 

Happy PUSHING!

Link to comment
Share on other sites

  • Replies 91
  • Created
  • Last Reply

Top Posters In This Topic

Neat.

 

How do you configure it to send to more than one iPhone.

 

Do you just duplicate the $CONFIG["API_KEY"] line?

 

To add more devices, you just need to download the App, and then log in with the username & password you created the account with. The API Key connects to your username, of which you can assign as many devices as you want. So it seems from their web site anyway :)

 

Hah. I thought about doing this a couple months ago and never got around to it. Very nice.

 

With Prowl? I only discovered it yesterday and set it up for server monitoring to save on SMS costs. Then thought of WHMCS :P

Link to comment
Share on other sites

Yes, with prowl. I was using prowl for a long time when I had an iphone to push Google Voice notifications since Apple refuses to allow an official GV app.

 

I may still go ahead and write an addon module rather than a hook for this. Maybe with support for multiple API keys, and different notification types for each key.

Link to comment
Share on other sites

If you want to, take the above code and turn it into a module. I have no objection as long as my notice stays in place. The reason it's in a class too, is so it's easy to upgrade to newer versions in the future, save breaking peoples WHMCS.

 

All you would have to do for a module is dump ProwlPHP.php, Prowl_WHMCS.class.php into the addon folder and insert the hook into hooks.php. Then reconfigure the search for configuration to support WHMCS Addons config. Then we'll be rocking. I just started it as a hook for personal use, then decided to make it a bit more expandable, hence why it is still a hook.

Link to comment
Share on other sites

If you want to, take the above code and turn it into a module. I have no objection as long as my notice stays in place. The reason it's in a class too, is so it's easy to upgrade to newer versions in the future, save breaking peoples WHMCS.

 

All you would have to do for a module is dump ProwlPHP.php, Prowl_WHMCS.class.php into the addon folder and insert the hook into hooks.php. Then reconfigure the search for configuration to support WHMCS Addons config. Then we'll be rocking. I just started it as a hook for personal use, then decided to make it a bit more expandable, hence why it is still a hook.

 

 

Sure. I'll probably just follow up to this thread and repost here.

Link to comment
Share on other sites

I have now converted this to an addon module that you can enable / disable from the WHMCS Admin Area.

 

Merge fields are listed in the admin area too.

 

It only allows for one API Key, as I can't seem to work out why you would want more than one. It wouldn't be hard to replicate this code into another module named differently and then setup another API Key there.

 

If you have the old version, delete all the files related to it and then install this module. All the files for this are now included in one folder & allow for easy install & removal.

 

Download link: http://b-digital.biz/members/dl.php?type=d&id=41

 

Again, happy pushing 8)

Link to comment
Share on other sites

I have now converted this to an addon module that you can enable / disable from the WHMCS Admin Area.

 

Merge fields are listed in the admin area too.

 

It only allows for one API Key, as I can't seem to work out why you would want more than one. It wouldn't be hard to replicate this code into another module named differently and then setup another API Key there.

 

If you have the old version, delete all the files related to it and then install this module. All the files for this are now included in one folder & allow for easy install & removal.

 

Download link: http://b-digital.biz/members/dl.php?type=d&id=41

 

Again, happy pushing 8)

 

thanks! really enjoy it.

 

Does this module works on whmcs 4.1.? or just the latest 4.4?

Edited by GNS_Harrison
Link to comment
Share on other sites

Hi, wonderful module, great job.

I experience a little trouble with the merge fields.

They are not replaced so I get ORDER_ID ORDER_NUMBER in the notification

instead of the real value.

 

Please help me !.

Regards.

 

Thank you :)

 

You need to wrap them in your selected merge delimeter. say %ORDER_ID% and %ORDER_NUMBER%

 

You can change the merge delimeter to allow for using those characters in your alerts.

Link to comment
Share on other sites

I have now converted this to an addon module that you can enable / disable from the WHMCS Admin Area.

 

Merge fields are listed in the admin area too.

 

It only allows for one API Key, as I can't seem to work out why you would want more than one. It wouldn't be hard to replicate this code into another module named differently and then setup another API Key there.

 

If you have the old version, delete all the files related to it and then install this module. All the files for this are now included in one folder & allow for easy install & removal.

 

Download link: http://b-digital.biz/members/dl.php?type=d&id=41

 

Again, happy pushing 8)

 

update the link in your original post too to use the new one as this ones better if you can disable it.. and it don't break whmcs if uploaded via ftp from a windows OS

Link to comment
Share on other sites

Thank you :)

 

You need to wrap them in your selected merge delimeter. say %ORDER_ID% and %ORDER_NUMBER%

 

You can change the merge delimeter to allow for using those characters in your alerts.

 

Haaaa cool, had just split the fields with a single delimiter. Works like a charm.

Again, good job guy !.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated