fix APNS test after introduction of APNS_MAX_NOTIFICATION_SIZE
added support for GCM time_to_live parameter