When I send a Rich Page to a Swift application the app is crashing. Push messages in general are working, but the SDK doesn't seem be able to render the page within the app.

Push notification accepted: [aps: {
    alert = "Brrrr..  Stay warm with today's deal of the day.";
    sound = default;
}, p: 5o, j: 1212]
2016-01-10 16:44:39.739 AppName[11562:3927464] [PW] [I] -[PWRequestManager] 
|    Pushwoosh request:
| Url:      https://cp.pushwoosh.com/json/1.3/pushStat
| Payload:  {"request":{"device_type":1,"hash":"5o","application”:"XXXXX","userId":"XXXXX","v":"","hwid":"XXXXX"}}
| Status:   "200 no error"
| Response: {"status_code":200,"status_message":"OK","response":null}
2016-01-10 16:44:39.748 AppName[11562:3927464] [PW] [D] -[PushNotificationManager] sendStats completed
2016-01-10 16:44:39.996 AppName[11562:3927455] [PW] [I] -[PWRequestManager] 
|    Pushwoosh request:
| Url:      https://cp.pushwoosh.com/json/1.3/getPage
| Payload:  {"request":{"device_type":1,"page_id":"1212","application":"XXXXX","userId":"XXXXX","v":"","hwid":"XXXXX"}}
| Status:   "200 no error"
| Response: {"status_code":200,"status_message":"OK","response":{"page":{"1":{"background":"255,255,255,255","headerBackground":"255,255,255,255","name":"global","type":"global","formHeader":"Global Settings"},"2":{"content":"&lt; Back","color":"255,255,255,255","name":"backBtn","type":"backBtn","formHeader":"Button Back"},"3":{"url":"http:\/\/www.domain.com\/skin\/frontend\/default\/pagayo-theme-002\/images\/logo.gif","name":"logo","type":"img","formHeader":"Logo"},"4":{"content":"<p>Mobile Deal of the Day<\/p>","fontSize":"16","color":"24,32,26,255","name":"title","type":"lineText","formHeader":"Title"},"5":{"url":"http:\/\/www.domain.com\/media\/catalog\/product\/cache\/1\/image\/9df78eab33525d08d6e5fb8d27136e95\/f\/r\/image.jpg.jpg","name":"banner","type":"img","formHeader":"Banner"},"6":{"content":"Keep warm with this grey wool sweater from Ann Taylor Loft. &nbsp;Sizes S-XL &nbsp;<br><br>$99.00 with Free Shipping. &nbsp;Today Only!","fontSize":"14","color":"#18201a","name":"content","type":"blockText","formHeader":"Text Content"},"7":{"background":"0,0,0,255","backgroundHover":"0,0,0,255","content":"Buy Now","color":"255,255,255,255","url":"","json":"{\"item\":\"1234\", \"action\":\"view\"}","name":"submitBtn","type":"btn","formHeader":"Button Submit"}},"template":"1"}}
2016-01-10 16:44:40.028 AppName[11562:3927460] -[__NSCFString mk_md5]: unrecognized selector sent to instance 0x147575c70
2016-01-10 16:44:40.035 AppName[11562:3927460] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString mk_md5]: unrecognized selector sent to instance 0x147575c70'
*** First throw call stack:
(0x180b5d900 0x1801cbf80 0x180b6461c 0x180b615b8 0x180a6568c 0x1000c3088 0x10009e924 0x10009ed08 0x1013c1bf0 0x1013c1bb0 0x1013d0e10 0x1013d04d8 0x1807c5470 0x1807c5020)
libc++abi.dylib: terminating with uncaught exception of type NSException
asked 10 Jan '16, 22:54
dgalante's gravatar image



Try to add -ObjC -all_load linker flags. It looks like categories are missing from the Pushwoosh SDK.

permanent link
answered 11 Jan '16, 12:08
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



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:


question asked: 10 Jan '16, 22:54

question was seen: 839 times

last updated: 11 Jan '16, 12:08