HomeGenie Forum

Automation Program Plugins and Wizard Scripting => APP Contributions => Topic started by: jshan on December 14, 2014, 06:53:10 AM

Title: Android Push Notification service
Post by: jshan on December 14, 2014, 06:53:10 AM
Android Push Notification for HomeGenie
=======================================
When a significant event occurs in HomeGenie, I wanted to be alerted as quickly as possible and with a configurable repeating alarm on my Android device(s) so that I had a better chance of not missing the alert.

Includes 3 parts:
  1. Android_Push_Notification_Service - HomeGenie C# app
  2. Android AlarmMe.apk - Android 4.0 (and above) app
  3. Android Push Notification Manual

The source code for AlarmMe.apk is not public domain at this time.

I've attached the C# app (1) and the manual (2).  The AlarmMe.apk file is 1.6M (too large to be attached so I stuck it at: http://www.filedropper.com/alarmme (http://www.filedropper.com/alarmme).  If someone wants to store it at a more permanent site, that would be great.  See this post for a mirror location - thanks mvdarend (http://www.homegenie.it/forum/index.php?topic=541.msg4021#msg4021 (http://www.homegenie.it/forum/index.php?topic=541.msg4021#msg4021))

Because there are 2 inter-related parts to this service, I recommend reading and understanding the entire manual before installing.

I've tested this and it works reliably for me on an HTC Android 4.0.3 phone and a Samsung Android 4.1.2 tablet.

No warranty expressed or implied - use at your own risk.  Support not guaranteed but feel free to ask.  Comments & improvement suggestions welcome.

Hope it's useful to someone.

Regards,
JohnS
Title: Re: Android Push Notification service
Post by: dani on December 14, 2014, 11:25:52 AM
When we click on your link, we have to pay for register, no download start.
What is the way to use File Droper ?

Regards
Dani
Title: Re: Android Push Notification service
Post by: jshan on December 14, 2014, 03:52:02 PM
I clicked on the link in my OP and for whatever reason, it goes to filedropper, but leaves off the "/alarmme".  If I copy and paste the link into my browser so that it includes the /alarmme, then it works.  At around the middle of the page is a grey download button - click on that at it should download the file, no registration or payment required.
Title: Re: Android Push Notification service
Post by: mvdarend on December 14, 2014, 03:56:33 PM
The correct link is http://www.filedropper.com/alarmme (http://www.filedropper.com/alarmme) (without the dot at the end.)
Title: Re: Android Push Notification service
Post by: jshan on December 14, 2014, 07:45:55 PM
OP link fixed - thanks mvdarend.
Title: Re: Android Push Notification service
Post by: KaZe on January 29, 2015, 03:09:41 PM
Hi!

the download link does not work for me. (AlarmMe.apk) :( Someone could send me or upload it somewhere?

Thanks!
Title: Re: Android Push Notification service
Post by: jshan on January 29, 2015, 03:56:27 PM
I have re-uploaded the file to filedropper.  The link http://www.filedropper.com/alarmme (http://www.filedropper.com/alarmme) should work now. 

It would be great if anyone has a better place to store this file so that it stays around as is accessible to everyone.

Regards,
JohnS
Title: Re: Android Push Notification service
Post by: mvdarend on January 29, 2015, 06:06:48 PM
I've added a mirror here:

http://www.vandenarend.com/downloads/AlarmMe.zip (http://www.vandenarend.com/downloads/AlarmMe.zip)
Title: Re: Android Push Notification service
Post by: jshan on January 30, 2015, 04:25:20 PM
Thanks mvdarend!
Title: Re: Android Push Notification service
Post by: Michel on May 22, 2015, 10:08:11 PM
Thanks JohnS, very usefull application. I like receiving notifications no matter where I am.

Is it possible to send the notifications only when Security Alarm System is armed ?

Title: Re: Android Push Notification service
Post by: jshan on May 23, 2015, 05:21:39 AM
HG can send notifications when the Security System is triggered - see input field #3 as indicated in the user manual under "Input Fields".  You would want to untick the "Send Android Notification" feature for the security device (e.g. motion sensor) and set field #3 to True.  This way you would only get a notification if the security device is tripped and the security system is armed.
Title: Re: Android Push Notification service
Post by: Fmstrat on August 18, 2015, 07:27:12 PM
Good idea, but closed source and requires side loading instead of going through a cheap/near free store like Play/Amazon where they do a security review?
Title: Re: Android Push Notification service
Post by: Michel on October 22, 2015, 03:08:48 PM
Does this service still works, because I am not receiving notifications for some time.
Title: Re: Android Push Notification service
Post by: jshan on October 22, 2015, 04:12:50 PM
Yes, Android Push Notifications is still working for me - I just tried it on r493.  I had some issues after updating (see http://www.homegenie.it/forum/index.php?topic=1004.0 (http://www.homegenie.it/forum/index.php?topic=1004.0)) but was able to get it fixed as detailed in the referenced post.  Good luck.
Title: Re: Android Push Notification service
Post by: kevin1 on October 22, 2015, 04:26:50 PM
Could we move this functionality into the official HomeGenie android app?
Title: Re: Android Push Notification service
Post by: Michel on October 22, 2015, 07:33:34 PM
Thanks jshan, problem solved !  :)
Title: Re: Android Push Notification service
Post by: jshan on October 23, 2015, 04:19:15 PM
Could we move this functionality into the official HomeGenie android app?

The app is free, but at this time, it's not open source.  I use it regularly and I do not feel that the HG function is compromised by having this app separate from the main HG app which I also use regularly.