Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications: surface notification and data payload on iOS #1906

Closed
oskarth opened this issue Sep 21, 2017 · 2 comments
Closed

Push notifications: surface notification and data payload on iOS #1906

oskarth opened this issue Sep 21, 2017 · 2 comments
Assignees
Milestone

Comments

@oskarth
Copy link
Contributor

oskarth commented Sep 21, 2017

User Story

As a developer, I want to see data (invisible) and notification (visible) payload passed through when app is backgrounded and you click on notification.

Android is a different issue because it requires additional logic.

Related to #1883

Type: Feature
Platform: iOS only

Notes for testing

  1. Trigger a push notification by chatting with a contact with app in background
  2. Click on the notification
  3. Check logs and grep for on-notification - this should print something like:
on-notification aps:  {:alert {:title "Status - new message", :body "ping"}}
on-notification data:  {:sum "Happy Day", :msg "Hello World1"}
@annadanchenko
Copy link

After tap on notification, there are these lines in log:
`default 16:30:22.794767 +0300 StatusIm DEBUG [status-im.utils.notifications:46] - on-notification aps: {:alert {:title "Status - new message", :body "ping"}}

default 16:30:22.795366 +0300 StatusIm DEBUG [status-im.utils.notifications:47] - on-notification data: {:sum "Happy Day", :msg "Hello World1"}`

iOS only
build 0.9.11d120
Branch: feature/notification-payload-#1906
iOS: https://i.diawi.com/KZ7XNi

@oskarth
Copy link
Contributor Author

oskarth commented Oct 12, 2017

Fixed in develop. For clarity of parent issue.

@oskarth oskarth closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants