I have the following code:
var alert = "{\"aps\":{\"alert\":\"" + message + "\"}}";
outcome = await ApnsNotifications.Instance.Hub.SendAppleNativeNotificationAsync(alert, username);
Bu the await just hangs forever and never returns. Should I just "fire and forget" this by not awaiting, or is there some other way to make sure this doesn't hang?
I should note that the username
may or may not have an iphone - so hopefully there's no requirement to actually have a device to send to with these.