Feature Requests?

348 views
Skip to first unread message

Peter Schmalfeldt

unread,
Jan 1, 2010, 5:09:16 AM1/1/10
to Easy APNS
Got something you'd like to see in future releases of Easy APNs? Let
us know ;)

Raphael Caixeta

unread,
Jan 8, 2010, 12:47:14 AM1/8/10
to Easy APNs
Some sort of integration with Apple's feedback server? So we don't
send any notifications to unsubscribed users. Or is this already
built?

On Jan 1, 5:09 am, Peter Schmalfeldt <manifestinteract...@gmail.com>
wrote:

Manifest Interactive

unread,
Jan 8, 2010, 1:47:35 AM1/8/10
to easy...@googlegroups.com
It is already built in. Every push notification makes a call to the
feedback service and updates any devices that received an error.

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
>
>

rjcarter

unread,
Feb 10, 2010, 4:13:52 PM2/10/10
to Easy APNs
I would like to see a grouping of devices function. My thinking is
being able to assign devices to groups so that I can sen notifications
to groups of devices vs all messages going to all devices.

On Jan 1, 5:09 am, Peter Schmalfeldt <manifestinteract...@gmail.com>
wrote:

Manifest Interactive

unread,
Feb 10, 2010, 6:03:46 PM2/10/10
to easy...@googlegroups.com
Since there is currently no GUI for the PHP app, how would you want to
grouping to function? It is possible to create a new db table and
just make a grouping that way, that would be the quickest.

Walk me through how you envision the grouping process to work. If
others like it, I will write it up.

- Peter

rjcarter

unread,
Feb 10, 2010, 8:53:51 PM2/10/10
to Easy APNs
Here are my thoughts.

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

Manifest Interactive

unread,
Feb 10, 2010, 9:02:53 PM2/10/10
to easy...@googlegroups.com
Good start, here are some questions...

#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

rjcarter

unread,
Feb 10, 2010, 9:03:37 PM2/10/10
to Easy APNs
Maybe update the newMessage function to accept the group value or the
device id? Sorry just saw the samples template about sending to more
than one user. But the app wouldn't know the id's ahead of time, but
the script could know the group ahead.

rjcarter

unread,
Feb 10, 2010, 9:15:41 PM2/10/10
to Easy APNs
#1 Yes. The user could be a member of multiple groups.

#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

rjcarter

unread,
Feb 13, 2010, 4:57:09 PM2/13/10
to Easy APNs
What about in the APNS.php line 599 around this statement:
if(!is_int($list[$i])) $this->_triggerError('TO id was not an
integer.');

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

Verads

unread,
Feb 14, 2010, 10:40:54 AM2/14/10
to Easy APNs
if would be nicw to add a Soap server php class, so sending
notifications could be done through applications (windows, osx and why
not iPhone).
So the logic is like this :
The user iPhone fill the database, the push appication ask the
database content via Soap and then send itself the notifications. In
this case you bypass may server firewall restrictions.

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...

alistair

unread,
Mar 16, 2010, 9:31:38 PM3/16/10
to Easy APNs
Daemon support of some description would be awesome. Apple's rules on
rapid establish / breakdown could well create problems otherwise.
Reply all
Reply to author
Forward
0 new messages