Add feedback_fail_count field and increment and decrement methods for this field in APNDeviceToken class
Slight refactoring of service model
Merge branch 'develop' of github.com:lloydmeta/push_to_devices into feature/enhance_apn_feedback_procedures
1. When polling for Apple Feedback on invalid APN device ids, we now also check the timestamp to make sure that we only fault the APN_device_tokens that were reported as failed AFTER the create date
2. Introduce the concept of a 3 strikes rule; APN tokens reported as invalid 3 times (and matching the criteria in 1) are deleted (destroyed), this threshold is tweakable in ApnDeviceToken::FEEDBACK_FAIL_COUNT_THRESHOLD
3. Tests to ensure 1 and 2 work properly
Add a comment
Add sort_by to sort array of APN feedback objects by time failed, ascending
Merge pull request #12 from lloydmeta/feature/enhance_apn_feedback_procedures

Feature/enhance apn feedback procedures