File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public void APNS_Send_Single ()
2222 failed ++ ;
2323 } ;
2424 broker . OnNotificationSucceeded += ( notification ) => {
25- succeeded ++ ;
25+ succeeded ++ ;
2626 } ;
2727 broker . Start ( ) ;
2828
@@ -39,6 +39,22 @@ public void APNS_Send_Single ()
3939 Assert . AreEqual ( attempted , succeeded ) ;
4040 Assert . AreEqual ( 0 , failed ) ;
4141 }
42+
43+ [ Test ]
44+ public void APNS_Feedback_Service ( )
45+ {
46+ var config = new ApnsConfiguration (
47+ ApnsConfiguration . ApnsServerEnvironment . Sandbox ,
48+ Settings . Instance . ApnsCertificateFile ,
49+ Settings . Instance . ApnsCertificatePassword ) ;
50+
51+ var fbs = new FeedbackService ( config ) ;
52+ fbs . FeedbackReceived += ( string deviceToken , DateTime timestamp ) => {
53+ // Remove the deviceToken from your database
54+ // timestamp is the time the token was reported as expired
55+ } ;
56+ fbs . Check ( ) ;
57+ }
4258 }
4359}
4460
You can’t perform that action at this time.
0 commit comments