Closed johnboy-leeds closed 4 years ago
@johnboy-leeds would be great if it is covered with the test.
@seyfer as the code change is removing the length requirement there are no changes to the test suite.
Had there been a separate assertion which tested the absolute length requirement, this would have been removed in this PR.
If I have misunderstood, please advise as to what test changes should be made, otherwise please consider merging this PR 😄
Thanks! 👍
Had there been a separate assertion which tested the absolute length requirement, this would have been removed in this PR.
A test can be added in a way, that test will check - if longer then 64 characters key passed, no exception was produced, for example.
@jonmilsom here I have added the missing test https://github.com/Ph3nol/NotificationPusher/pull/194
Thank you @seyfer 👍
As per issue: https://github.com/Ph3nol/NotificationPusher/issues/185
The length can vary and Apple advises against hardcoded lengths: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html#//apple_ref/doc/uid/TP40008194-CH8-SW14