Group notification example #35

Closed
amithooda opened this Issue Dec 9, 2011 · 3 comments

Comments

Projects
None yet
3 participants

heyy
can u provide a group notification example??
and if it is necessary to hav the token of the all devices to which group notification is to be send??

Regards,
Amit Hooda

ramigg commented Jan 5, 2012

group = APN::Group.find_by_name('my_group')
APN::GroupNotification.create(:group => group, :badge => 12) # can add also sound, alert etc.
APN::App.send_group_notifications
APN::App.process_devices # Feedback - This is necessary to delete invalid devices

thnks i was able to send it earlier,,,, but thanks 4 the last step i wasnt knwing that :) ,,,,

amithooda closed this Jan 10, 2012

I am having a problem regarding the group notification. I was able to send it before but now the code line APN::App.process_devices cannot find devices that I want to send

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment