Hello,

Is there a way to use /getTags with Unity? I couldn't find any code about it in the plugin/scripts made for Unity. If not, is there a recommendation or documentation suggesting a better way creating it?

So, I need this feature because I have a screen in my Unity App where the user is able to choose what kind of notifications he/she wants. When the user comes back to this screen, I have to show the previous settings made by the user.

Thanks.

asked 20 Dec '16, 16:18
joaokucera's gravatar image

joaokucera
113

Hello !

I suggest implementing /getTags API request using .NET into your application for that purpose. Currently, there is no equivalent method in the Unity plugin itself. You may refer to our /createMessage .NET sample for more information on syntax.

Regards, Alex.

permanent link
answered 21 Dec '16, 11:15
Alex's gravatar image

Alex
1615

Hello Alex,

Thank for your quick response.

Could you send me a link to /createMessage .NET sample. I couldn't find by myself.

Regards, João Kucera.

(21 Dec '16, 15:01) joaokucera joaokucera's gravatar image
1

Sure. Please follow the link below and switch to the .Net

http://docs.pushwoosh.com/docs/createmessage#createmessage-snippets

Regards, Alex.

(22 Dec '16, 04:29) Alex Alex's gravatar image

Hi Alex,

I created a code to call /getTags in Unity: http://pastebin.com/XM3kNu4L

The method GetTags is the main on. I followed the link that you provide me, but it's not working.

It's the error that I'm having: "WebException: Error writing request: The authentication or decryption has failed. at System.Net.WebConnectionStream.WriteHeaders () at System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer) at System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error)"

Could you advise me about this authentication issue and how to fix that?

Regards, João Kucera.

(12 Jan '17, 19:38) joaokucera joaokucera's gravatar image
1

Hi,

The following thread might be useful for you, please have a look:

http://stackoverflow.com/questions/36412349/in-c-mono-not-able-to-communicate-with-google-cloud-storage

(13 Jan '17, 12:33) Vitaly Roman... Vitaly%20Romanychev's gravatar image

Thank you Vitaly, but it don't help me. I think my issue is with the data that I have to send in the Request Header.

(16 Jan '17, 15:01) joaokucera joaokucera's gravatar image

Hello,

I’ve created a task for our developers to add a getTags method to our Unity plugin, so as soon as it is released you will be able to use it out-of-the-box. Please stay tuned for the further updates!

Regards, Alex.

permanent link
answered 17 Jan '17, 07:04
Alex's gravatar image

Alex
1615

Thank you Alex!

(17 Jan '17, 15:38) joaokucera joaokucera's gravatar image

Hi Alex, have you seen my last message about my /getTags implementation in Unity?

permanent link
answered 16 Jan '17, 16:34
joaokucera's gravatar image

joaokucera
113

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:

×88
×83
×4

question asked: 20 Dec '16, 16:18

question was seen: 1,233 times

last updated: 17 Jan '17, 15:38