Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You registered for native notifications but then you are sending a template notification. If you want to send native (this will require additional sends if you want to reach devices on different platforms) you have to use</p> <pre><code>hub.SendAppleNativeNotification( "{ \"aps\": { \"alert\": \"This is my alert message for iOS!\"}}", "tag"); </code></pre> <p>Please refer to <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html" rel="nofollow">https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html</a> for the iOS payload format.</p> <p>Alternatively, you can register for template notifications with:</p> <pre><code>NSString* template = @"{aps: {alert: \"$(myToastProperty)\"}}"; [hub registerTemplateWithDeviceToken:deviceToken name:@"myToastRegistration" jsonBodyTemplate:template expiryTemplate:nil tags:nil completion:^(NSError* error) { if (error != nil) { NSLog(@"Error registering for notifications: %@", error); } }]; </code></pre> <p>Using a template like:</p> <pre><code>{ “aps”: { “alert”: “$(alert)” } } </code></pre> <p>Then you can send notifications using hub.SendTemplateNotification like you are already doing.</p> <p>For more information regarding the difference between template and native please refer to: <a href="http://msdn.microsoft.com/en-us/library/jj927170.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/jj927170.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload