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

Subscribe to notifications on launch AB #416

Merged
merged 12 commits into from
Nov 30, 2018

Conversation

ivan-magda
Copy link
Member

@ivan-magda ivan-magda commented Nov 26, 2018

Задача: #APPS-2143

Описание:
Предлагаем подписаться на нотификации сразу при запуске приложения.

Кейсы, когда запрашиается доступ на нотификации:

  1. Включен свитч на стрики
  2. Залогиненный юзер перешел на вкладку "Уведомления"
  3. Залогиненный юзер записался на курс
  4. После логина, когда пользователь решал на этой неделе
  5. Пользователь решил 3 задачи подряд
  6. Пользователь создает персональное расписание

1,6 пока не обернуты, эти действия пользователь выполняет явно и для работы этих функциональностей необходимо разрешение на получение уведомлений и поэтому мне кажется в этих случаях всегда нужно запрашивать разрешение, а остальные запросы выполняются только при определенных условиях.

@ivan-magda ivan-magda added this to the 1.73 milestone Nov 26, 2018
@ivan-magda ivan-magda self-assigned this Nov 26, 2018
@ivan-magda ivan-magda requested review from Ostrenkiy and kvld November 26, 2018 10:52
if userActivity.didSolveThisWeek
&& self.notificationSuggestionManager.canShowAlert(context: .streak, after: .login) {
self.streaksAlertPresentationManager.suggestStreak(streak: userActivity.currentStreak)
if !SubscribeNotificationsOnLaunchSplitTest.shouldParticipate {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот здесь, кажется, все равно надо показывать алерт, так как мы предлагаем подписаться на уведомления о стриках все-таки, а не просто дать разрешение на пуши.

@ivan-magda ivan-magda merged commit c37e2d5 into dev Nov 30, 2018
@ivan-magda ivan-magda deleted the feature/ab-notifications-subscribe-on-launch branch November 30, 2018 16:10
@kvld kvld mentioned this pull request Dec 3, 2018
@ivan-magda ivan-magda added the a/b Pull requests that working with A/B testing label Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/b Pull requests that working with A/B testing main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants