Skip to content

Настройка рекламы в приложении #53

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

Open
AnShok opened this issue Apr 8, 2025 · 0 comments
Open

Настройка рекламы в приложении #53

AnShok opened this issue Apr 8, 2025 · 0 comments

Comments

@AnShok
Copy link
Owner

AnShok commented Apr 8, 2025

Реализовать показ рекламы только для пользователей без активной подписки (!AppFeaturesManager.isProActive()), по следующим правилам:

  1. Межстраничная реклама (Interstitial):
  • При каждом втором выходе с экрана календаря (CalendarFragment)
  • При каждом третьем запуске приложения
  1. Ввести счётчики:
  • calendar_exit_count (SharedPreferences / DataStore)
  • app_launch_count
  1. Увеличивать соответствующий счётчик:
  • onStop() в CalendarFragment
  • в App или onCreate() в RootActivity
  1. Проверять делимость:

calendar_exit_count % 2 == 0
app_launch_count % 3 == 0

Показывать рекламу, если условие выполнено и пользователь — не PRO

Убедиться, что реклама не мешает переходам между экранами (добавить задержку или runAfterDismiss).

Все проверки и отображение рекламы — через централизованный AdManager или AdHelper.

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

No branches or pull requests

1 participant