I've read the tutorials and the docs here about notifications,
http://devcenter.appery.io/tutorials/...
And I've read the docs as well.
I've followed the instructions to get both google and Apple push certificates - and have them both.
Just introduced myself to some intermediate level server code (or perhaps it was beginner code.... ) the other day when doing deletes for a where clause via server code.
based on requirements I have for an app - I need to send out notifications to users devices (i'm tying users to their devices at login) about events that are about to occur based on a schedule they specify (specifically - user specifies I want to send an email to a href="mailto:Tom.Jones@ancient-artists.com" rel="nofollow"Tom.Jones@ancient-artists.com/a on Sunday 2.15.2015 at 2pm UTC time (I've done the work to store my date-times in both local and UTC time to make this part of the work - hopefully - easier).
I have an entire db of requests like this (lol - and hopefully it will be a large DB !!!).
In my server code I have 2 requirements. 1 - Send a notification to the user 1 hour prior to the sending of the email. 2 - send the email. This thread is specifically about sending the notification to the users device.
I believe I understand the dynamics of reading my message table, and looking for scheduled events that will need to occur in the next say 5 minutes, finding them, and getting a query that has the message ID's of outbound messages that need notifications (and doing this in server code). As I iterate through the query results, I need to lookup the user - and then lookup his-her device(s) in the device table (I've got that covered too....) -my only grey area here is how to use the API for the notifications - inside my server code ??
The tutorials referenced in all of the posts here - refer to notifications that are being sent from a user front end, and building a data-source-service to do the work. Obviously - on the server side - we don't have those tools.
Any hints - or code snippet ideas that you all can supply to lead me down the right road here? (Promise when I'm done to post the complete code - so that others can benefit from the shared expertise.... I don't need the whole proc - just a nudge down the road....)
Happy Friday (ok it's Friday here ....) and thank you in advance !!!
Bruce