ApplePushMessage Constructor (String, Nullable<TimeSpan>)
Initializes a new instance of the ApplePushMessage class with a given alert message and an optional expiration of the notification.
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Parameters
- alert
-
Type:
System.String
The notification alert message.
- expiration
-
Type:
System.Nullable<TimeSpan>
A TimeSpan relative to the current time. At the end of the lifetime, the notification is no longer valid and can be discarded. If this value is non-null, APNs stores the notification and tries to deliver the notification at least once. Specify null to indicate that the notification expires immediately and that APNs should not store the notification at all.
Show: