How to develop Push Notification in PHP? - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: Web Technology & Internet (https://post4vps.com/Forum-Web-Technology-Internet) +--- Forum: Web Design & Projects (https://post4vps.com/Forum-Web-Design-Projects) +--- Thread: How to develop Push Notification in PHP? (/Thread-How-to-develop-Push-Notification-in-PHP) |
How to develop Push Notification in PHP? - Littlemaster - 02-23-2020 Hi, Currently I am trying to implement a webpush notification in my website, I have tried some tutorials but without a full success. I tried webpush php but I could not use it correctly. Sometimes I can't unsubscribe the user. Have you tried it anywhere and do you have a complete sample code of it? RE: How to develop Push Notification in PHP? - perry - 02-23-2020 i think this is worth a try: https://www.phpzag.com/push-notification-system-with-php-mysql/ somthing i also found as example (for android): Code: <?php RE: How to develop Push Notification in PHP? - humanpuff69 - 02-24-2020 you can use firebase admin on php and make a push notification with it . send the push through cloud messaging but you need to configure your app to support firebase cloud messaging you can read the docs here https://firebase-php.readthedocs.io/en/stable/ i personally dont use php when sending push notification i just use it manually with the firebase panel RE: How to develop Push Notification in PHP? - Sn1F3rt - 02-24-2020 @Littlemaster I'd recommend you to use the one @perryoo11 linked above. I've used that one from PHPZag and that works perfectly. It should be compatible with the latest 7.x PHP versions as well. For future reference, PHPZag has amazing PHP tutorials of all kinds. The best part about the team is that all tutorials are quite well-maintained. If you're stuck with anything in PHP you can most probably find a solution there. Regards, RE: How to develop Push Notification in PHP? - Littlemaster - 02-25-2020 (02-24-2020, 05:35 PM)sohamb03 Wrote: @Littlemaster I'd recommend you to use the one @perryoo11 linked above.I checked the script, I think that is only a browser based push system, what I am trying is to make the push to android top drag screen, not just the browser. I can't see codes for it in those pages.I need to show the push on android homescreen in the style like new email or whatsapp message even the phone is locked. RE: How to develop Push Notification in PHP? - Sn1F3rt - 02-25-2020 Well I'm not quite sure of what you mean. The tutorial Perry linked above sends push notifications on both desktop and mobile browsers. If you mean, sending push notifications in an Android app, here's a relevant one - https://android.jlelse.eu/android-push-notification-using-firebase-and-advanced-rest-client-3858daff2f50 If you need anything else, feel free to lemme know. Regards, RE: How to develop Push Notification in PHP? - anehthakur - 03-26-2020 If you are using Firebase push notification to send a notification in android then you can use this code. PHP Code: <?php You can find complete tutorial to send Firebase push notification android |