Skip to content
This repository has been archived by the owner on Mar 9, 2018. It is now read-only.

Advanced APNs Features

ileitch edited this page Dec 9, 2012 · 6 revisions

The Feedback Service.

rapns checks for feedback periodically and stores results in the Rapns::Apns::Feedback model. Each record contains the device token and a timestamp of when the APNs determined that the app no longer exists on the device.

It is your responsibility to avoid creating new notifications for devices that no longer have your app installed. rapns does not and will not check Rapns::Feedback before sending notifications.

Note: In my testing and from other reports on the Internet, it appears you may not receive feedback when using the APNs sandbox environment.

You can define a callback to run every time feedback is received, see Configuration.

Mobile Device Management

n = Rapns::Apns::Notification.new
n.mdm = "magic"
n.save!

Assigning a Hash to alert

Please refer to Apple's documentation (Tables 3-1 and 3-2).

Clone this wiki locally