Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In order to delete a tag you just update the registration with a set of tags that does <em>not</em> contain it. E.g.</p> <pre><code>SBRegistration* toUpdate = [hub retrieveNativeRegistrationWithError: nil]; [[toUpdate tags] addObjectsFromArray: @[@"myNewTag1", @"myOtherNewTag"]]; [hub updateRegistration:toUpdate]; </code></pre> <p>Or Async:</p> <pre><code>[hub retrieveNativeRegistrationWithCompletion:^(SBRegistration* r, NSError* e) { if (r == nil) ; // error handling [[r tags] addObjectsFromArray:@[@"myNewTag", @"myOtherNewTag"]]; [hub updateRegistration:r completion:^(SBRegistration* r2, NSError* e) { // error mgmt; }]; }]; </code></pre> <p>Also, note that when you call createNativeRegistration you will overwrite the current set of tags. This naming inconsistency is getting fixed in the next release of the iOS SDK.</p> <p>At this moment you cannot retrieve count by tag, but (from the back-end) you can retrieve all registrations with a tag (an inefficient a way to count). You can do it from the back-end .NET SDK, using:</p> <pre><code>var skip = 0; var increment = 100; IEnumerable&lt;RegistrationDescription&gt; regs = hubClient.GetRegistrationsByTag("myTag", skip, increment); while (regs.Count() != 0) { foreach (var i in regs) { // do work } skip += increment + 1; regs = hubClient.GetRegistrationsByTag("myTag", skip, increment); } </code></pre> <p>Or using our REST surface: <a href="http://msdn.microsoft.com/en-us/library/windowsazure/dn223274.aspx" rel="nofollow">GetRegistrationsByTag</a></p> <p>Thanks,</p> <p>Elio</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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