这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@afestein
Copy link
Contributor

Currently the on_push_notification method sets launched to true if the user has received a background push notification.

  1. When the push arrives with the app in the background, the state is UIApplicationStateBackground
  2. If you open it from a push notification, the state is UIApplicationStateInactive
  3. If it arrives while the app is in the foreground, the state is UIApplicationStateActive

Therefore we only want launched to be true for UIApplicationStateInactive.

Currently the `on_push_notification` method sets `launched` to true if the user has received a background push notification.

1. When the push arrives with the app in the background, the state is `UIApplicationStateBackground`
2. If you open it from a push notification, the state is `UIApplicationStateInactive`
3. If it arrives while the app is in the foreground, the state is `UIApplicationStateActive`

Therefore we only want launched to be true for `UIApplicationStateInactive`.
@jamonholmgren jamonholmgren merged commit e03d2d3 into infinitered:master Feb 28, 2017
@jamonholmgren
Copy link
Member

Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants