Forum Moderators: coopster & phranque

Message Too Old, No Replies

Pushing notifications to mobile device

         

csdude55

1:50 am on Mar 1, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can you guys suggest a cookie-cutter script or module that I can use to push notifications to mobile users? I'm finding plenty of cookie-cutter PHP scripts, but nothing for Perl.

I'm already using a fairly complicated Perl script that's a culmination of 15 years of updates, upgrades, and modifications, and it would be a million times easier to add something here instead of rewriting it to be a totally new PHP script.

In an ideal world, I'd find something that I can simply add to:


$success = 0;

# Do all testing and manipulation here
# If all is good, $success = 1;

if ($success) {
$sth = $dbh->prepare("INSERT IGNORE INTO tableA VALUES (?, ?, ?)");
$sth->execute('blah', 'blah', 'blah');

push_notification();

print "Location: http://www.example.com/success/";
exit;
}

function push_notification {
// script for mobile push here
}



I expect to be sending about 1,000 a day from the beginning; roughly 2,000 inserts are done each day, and my mobile traffic is currently about 50%. And it will probably grow considerably over the next year :-(

Brett_Tabke

2:17 pm on Mar 22, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



more info needed.

Drop a link to a php script you are referring too.

csdude55

1:13 am on Mar 23, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sorry, it's been awhile and I didn't save any of them. I did some research after my post, though, and found a lot of places where you pay a monthly fee to send X number of notifications? But that would get ridiculously expensive, so I'm positive there's an easier way.

I just want my users to opt-in to an alert when they get a Private Message. Is it really so complicated as to justify spending hundreds of dollars a month for that option?

Brett_Tabke

2:17 pm on Mar 23, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



There are several types of notifications and they are radically different:

What type of notification?
- Desktop?
- sms?
- email?
- social? Facebook/Twitter/Skype/Google hangout
- other?

csdude55

9:30 pm on Mar 23, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm talking about on a mobile device. After opting in, of course, when they get a message on my site, I want them to get an alert in their notification menu. The same as Facebook, Snapchat, etc.

Brett_Tabke

1:45 pm on Apr 2, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Ok, I see now. Ya, that is browser based notifications. I think chrome is the only one currently supporting it. Firefox you have to have an extension yet and safari is unique code. (let me poke a couple people back stage)

[theverge.com...]

csdude55

10:22 pm on Apr 2, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Reading that link, it does sound like what I'm looking for. I'm not so concerned with desktop notifications, I just have people on their mobile device constantly asking me to supply a way to let them know when they get a message. I guess it would be easier to implement if I created an app in addition to my site, but I haven't found a way to monetize that... at least, not enough to justify the app.

Any suggestions on where I might find a tutorial on how to build this notification? I read through the article and followed every link I could find, but nothing said HERE is how to do it...

csdude55

10:24 pm on Apr 2, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As soon as I posted that, I think I found the answer:

[developers.google.com...]

I haven't read through it yet, but I think this is it. Thanks for pointing me in the right direction! But if you have any suggestions on how to make this less complicated, I'm all ears :-D