PuSH-IT - Push Notification Extension (for Node JS/PHP BETA)

Another one of our internal Extensions we would like to share. Does what it says on the tin!

NOW AVAILABLE IN THE NATIVE EXTENSION INSTALLER WITHIN WAPPLER!

Github repos:


PHP BETA version (as requested by Brad). This is UNTESTED but you can help iron out any bugs if you want to give it a go!


As always your feedback is very welcome and if you find it useful you can Buy Me a Coffee

:smiling_face_with_three_hearts:

Expect you are all fed up of me by now....

:face_with_peeking_eye:

6 Likes

@Cheese you are putting out some amazingly useful extensions, thank you so much.

2 Likes

Thank you Brian that means a lot.

:smiling_face_with_three_hearts:

I agree, I wish I could use Node. I need this one!!!

1 Like

I'll try to create a version for you Brad. For PHP? You will have to do the testing though as I have zero patience for PHP these days. Blame @JonL hahaha...

Thanks Cheese! Yes, for PHP. I have never used an extension before. This would be interesting lol

I'm entirely avoiding NPM Brad and hosting everything I create on Github. I don't want to be any part of the next supply chain compromise. Seems to be a weekly occurrence on NPM.

Really is simple. I provide very simple to follow instructions in the readme on Github, as such:

Install
1. Composer dependency (PHP project root)
cd YOUR_WAPPLER_PHP_PROJECT
composer require minishlink/web-push
2. Extension files
cp pushit.php YOUR_PROJECT/extensions/server_connect/modules/pushit.php
cp pushit_prepare.hjson pushit_send.hjson YOUR_PROJECT/extensions/server_connect/modules/
cp pushit_service_worker.js YOUR_PROJECT/public/pushit_service_worker.js
Quit Wappler completely and restart.

Actions appear under Mr Cheese → PuSH-IT Prepare Subscription / PuSH-IT Send Notification.

I refactored the Node JS Extension. Available below (I have absolutely no idea if this will work out the box but it should do):

Special @JonL mention in the readme for this one...

PLEASE NOTE THIS IS A BETA AND you, dear @brad, are the poor guinea pig! Muhahahahahahahaha.

If this works I'll begin work refactoring what I can for PHP but PHP is really not my priority. I will get there though, if it can be done, and you are willing to test, I'll do all I can my end.

:blush:

Thanks Cheese! Will take me awhile as I have never used an extension before so there will be a large learning curve. Regardless, I will certainly buy you a coffee on your link!

1 Like

Absolutely no rush or urgency all in your own time Brad. It is there when you want to dip your toe in to Extensions.

Nah man you don't have to do that! Pleasure to aid you in your adventures. Very nice of you though, thank you! I do this stuff as I love Wappler and the Community. A coffee/donation here and there is nice though. If it works for you and you still want to do that, I won't argue. Thank you.

Small coffee sent. Will send a pot if I can figure it out. :wink:

1 Like

Brad thank you! Sincerely. Like I mentioned above I do it for people like you, and of course others who share the same passion for Wappler. We have multiple Extensions we use for internal purposes which I am going through and making public. So a few more to come as I garner some free time to upload/update them to share.

THANK YOU!

:smiling_face_with_three_hearts:

2 Likes

My FIRST App-Connect Component (for the Node JS version only right now) That was a very steep learning curve especially on the UI front... Still might have to do one or two tweaks but is all working as it should (famous last words eh).

Can now add the front-end subscribe to notifications and unsubscribe functionality.

Result (unsubscribe is shown when User is subscribed):

:sweat_smile:

I have tested this extension by installing it using Wappler's Extension Manager. A one click installation that automatically includes all that is required to start using the extension.

1 Like