sms,MMS, and Push Notificstions

Mike Kerner MikeKerner at roadrunner.com
Wed Aug 16 16:14:39 EDT 2017


I've been threatening to build/working on an LC push server library, but
it's on the back burner, right now, and probably will be until the end of
the year, at the earliest.
• First, go to quality.livecode.com, and add yourself to the cc list for
bug 10901 and 18692.  Those are for various improvements in push support
that will allow us to do things like silent push (push data to your app
without your app having to do it while it is running, wasting the user's
time).
• The piece that leaves the most to the imagination is handling the id
reporting from the devices.  On iOS, the only way to pull an app's push id
on a device is inside of the app.  So your app has to report its id to your
server, somehow.  "Somehow" can be a file drop (e.g. dropbox, since we talk
about that service a lot), a special port or URL, a web db query, etc.
• Your app checks to see if it has already reported its push id.  If it has
not, it reports it (however, there isn't any harm in reporting it each time
it launches).
• Perhaps your server implements a mechanism to notify your app that the
push id was received (e.g. by sending a push notification back), so that
the app does not notify the server, again, for this push id
• If your app notices that its push id has changed, it reports the old id
and the new id (or if you have some other way of keeping track of a
particular install on a particular device, you could report that with the
new id, instead).
• Check, periodically, to see if the push server is reporting that some id
or another is no longer active and should be taken out of service (I have
never received such a report, but you are supposed to do this, anyway).

On Wed, Aug 16, 2017 at 2:49 PM, William Prothero via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Mike:
> Me too on Richard’s request. I think the livecode lesson is a good start,
> but yes, setting up the server is another issue entirely. Since you’ve been
> through this process, it would be very useful to hear which learning
> resources you found most useful.
>
> Here are a couple of promising links I found by Googling around.
>
> This youtube video looks quite promising. It shows how to set up a server
> and the push notifications are sent using a cron job. I would bet the php
> code could be easily modified to sent the notification from a command on an
> app or mobile device.
> https://youtu.be/x4swrHvBqEw <https://youtu.be/x4swrHvBqEw>
> More similar:
> https://webresourcesdepot.com/easy-apns-apple-push-
> notifications-with-php-and-mysql/ <https://webresourcesdepot.
> com/easy-apns-apple-push-notifications-with-php-and-mysql/>
> https://code.google.com/archive/p/php-apns/ <https://code.google.com/
> archive/p/php-apns/>
> I don’t know what would be required for sending notifications to Android
> mobile devices.
>
> Best,
> Bill P
>
>
> > On Aug 16, 2017, at 11:27 AM, Richard Gaskin via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > Mike Kerner wrote:
> >
> > > I disagree with Ben on the effort of rolling your own.  The first one
> > > is probably some work, until you understand how push works, but after
> > > you understand, it is pretty easy.
> >
> > I don't mind learning new things, and I often prefer the control I get
> with my own private systems.
> >
> > What resources would you recommend for learning more about setting up a
> notification server?
> >
> > --
> > Richard Gaskin
> > Fourth World Systems
> > Software Design and Development for the Desktop, Mobile, and the Web
> > ____________________________________________________________________
> > Ambassador at FourthWorld.com                http://www.FourthWorld.com
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the Use-livecode mailing list