I've got an app (Android & iOS) that registers and receives messages for the most part absolutely fine - when app is open it will internally display an alert and when app is closed show native alert/badge then deeplink to the correct part of the app based on params passed (eg noticeID = 1205). Except on iOS it simply doesn't get the params and opens on the normal home screen - in android it works as it's supposed to. Does iOS even get these params passed to it from the alert?

It hard to debug as everytime I close the app in iOS obviously the debugger gets detached, so I have no idea what it's doing :@

asked 13 Oct '15, 09:02
adamaloney's gravatar image

adamaloney
214

Where do you look for the parameters? It should be as a part of the URL in the "l" entry in the push payload.

It hard to debug as everytime I close the app in iOS obviously the debugger gets detached, so I have no idea what it's doing

No, debugger does not detach itself. When you receive push notification the breakpoints will work as expected.

permanent link
answered 19 Oct '15, 21:30
shader's gravatar image

shader
3.9k7

Thanks. Putting a breakpoint in Pushnotification.m onPushAccepted works, I was just watching the console.

Also I had usecapture set to false in the event listener, which I think caused it to fail.

permanent link
answered 21 Oct '15, 10:04
adamaloney's gravatar image

adamaloney
214

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:

×353
×190
×141
×13

question asked: 13 Oct '15, 09:02

question was seen: 694 times

last updated: 21 Oct '15, 10:04