On Jan 1, 5:09 am, Peter Schmalfeldt <manifestinteract...@gmail.com>
wrote:
So apple cannot yell at you for sending notifications to devices that
wont accept them.
EasyAPNs takes care of all that automatically.
- Peter
> --
> You received this message because you are subscribed to the Google
> Groups "Easy APNS" group.
> To post to this group, send email to easy...@googlegroups.com
> To unsubscribe from this group, send email to
> easyapns+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/easyapns?hl=en
>
>
On Jan 1, 5:09 am, Peter Schmalfeldt <manifestinteract...@gmail.com>
wrote:
Walk me through how you envision the grouping process to work. If
others like it, I will write it up.
- Peter
I was thinking that you could add a some columns to the devices
table. Might not be scalable, but let's brainstorm here.
When the device registers using the PHP script one or more parameters
could be the grouping that you want the device to be a member. I was
imagining a screen that had maybe 4 or five categories. Say
Important, Warning, Critical. Some thing like that. Then when to user
toggles the switch on the screen the device would "re-register" itself
and update the devices table to have the appropriate columns values,
TRUE or FALSE.
Composing alerts. When you compose an alert you would use the
addMessageCustom to add the group information to the message.
Sending the alert. Here's where the magic would be. As the script is
processing alerts the SQL query would need to be updated to pull
devices based on the group columns. So in english, send alerts to all
devices that have group columns populated with TRUE. So I would add
another parameter to the php script. The call might look like this,
apns.php?task=fetch&group=critical It would then fetch all of the
alerts and send it to devices that where "registered" to receive
critical messages.
What do you think?
On Feb 10, 6:03 pm, Manifest Interactive
#1. Would you want the user to be able to be apart of more than one group?
#2. Would you want to be able to send a single message to more than
one group (not all users, just users of a few groups)
#3. If you want 1-2, how would you want to handle the scenario when a
possible user is in both groups you send one message to... which group
do they receive the notice from
- Peter
PS, if anyone else has thoughts, let us know
#2 No. A Single message goes to a single group. Modify the newMessage
function to allow for a group value.
#3 Since I am a negative on #2 I think we can dodge this one right
now. But interesting problem that I did not think about. Thinking
about it, if you did a SELECT DISTINCT device where group1=TRUE OR
group2=TRUE etc.. query on the table with the groups columns couldn't
that remove the duplicates and send one message to everyone in the set
of groups? Basically merging the groups into one distinct group and
then send the one message? However, I would be happy with #2 of a
single message to a single group of devices.
On Feb 10, 9:02 pm, Manifest Interactive
Add logic here to process a group name. The apns_devices table would
need to add a new column or create a new table called groups. So in
the add message call you could specify a group name instead of an
array or PIDs. How does that approach sound?
On Feb 10, 9:02 pm, Manifest Interactive
I don't know nothing about PHP (I come from Codegear Delphi).
I will try to learn a little bit.
there is Soap samples that access a database here :
http://developer.apple.com/internet/webservices/soapphp.html
Just my 2 cents...