How do i set send tags in Xamarin iOsSdk.

I ask this question because i can't find a sendtags method on in the PushNotificationManager. On Xamarin android there is a static variant

asked 09 Nov '15, 11:45
Jeroen's gravatar image

Jeroen
3115

You will need to create a NSDictionary and add it to the tags property in the Pushmanager. For example:

 NSMutableDictionary dictionary = new NSMutableDictionary();
 foreach (KeyValuePair<string,string> tag in tags){
        dictionary.Add (new NSString(tag.Key),new NSString(tag.Value));
  }

 m_PushManager.Tags = dictionary;

You can find more information in the ios native sdk documentation :

https://github.com/Pushwoosh/pushwoosh-ios-sdk/blob/master/Documentation/PushNotificationsManager.md#settags

permanent link
answered 13 Nov '15, 10:59
kdeleij's gravatar image

kdeleij
263

edited 13 Nov '15, 11:00

Awesome!!!

permanent link
answered 13 Nov '15, 11:01
Jeroen's gravatar image

Jeroen
3115

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×352
×64
×24

question asked: 09 Nov '15, 11:45

question was seen: 3,122 times

last updated: 13 Nov '15, 11:01