Hello,

I have created an iPhone App where i have one screen with multiple buttons (showing categories of notification like Image,Vedio,Audio,Text).Now For me challenge is,how can i differentiate that this notification holds vedio link,so i have to add this notification in vedio category,if notification hold plain text then, it should be shown in Text category.I tried to find Api's and different other possibilities but was unsuccessful as whenever we send any notification ,it gives you dictionary that holds : Alert , sound,Badge etc information in json format.

Please help me out with this problem.

asked 12 Jan '15, 19:22
Kanchan's gravatar image

Kanchan
112

edited 13 Jan '15, 08:12

You can use custom data for this. You can pass your JSON object and get it in app with getCustomPushData method of PushNotificationManager. For example, {"video":"video_link"}.

permanent link
answered 14 Jan '15, 08:27
Fectum's gravatar image

Fectum
2604

As Our Client will be using PushWoosh account for pushing remote notifications , so I can’t force him to use custom data where he have to pass json string (to pass notification type) and even if I say him to pass custom data, there is no guarantee that he will be typing correct type in custom data which I will be using further in application to differentiate push notifications.

Is there is any other way to differentiate push notifications according to their type?

(14 Jan '15, 11:03) Kanchan Kanchan's gravatar image

I would recommend to do Push presets that will have custom data built-in. This way you can make sure the custom data will be entered automatically.

(14 Jan '15, 12:15) shader shader's gravatar image
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:

×446
×353
×111

question asked: 12 Jan '15, 19:22

question was seen: 705 times

last updated: 14 Jan '15, 12:15