PushSharp 仅在调用 stop 时处理队列。有谁知道 push sharp 将多久处理一次队列或刷新它?我不想每次要发送通知以节省资源时都必须调用停止和启动。
pushService = new PushService();
pushService.StartApplePushService(new ApplePushChannelSettings(prod, cert.InputStream.ReadToEnd(), passConfig.Value));
pushService.QueueNotification(
NotificationFactory.Apple().ForDeviceToken("mydeviceid").WithAlert("Notifications Started!").WithSound("default").WithBadge(7));
pushService.StopAllServices(true);