A technical portfolio project demonstrating the integration of essential LiveOps features, specifically In-App Purchases (IAP) and Push Notifications within a Unity environment. While the project features a functional clicker game loop, the primary focus is on the architecture and implementation of backend services required for mobile game retention and monetization.
The project is wrapped in a simple "Clicker" mechanic:
- Core Loop: The main scene features a pickaxe and a stone. Clicking the stone mines ore, updating the UI counter.
- Economy: Ore serves as the currency to validate purchase flows.
- Store UI: A dedicated interface allowing users to purchase virtual currency packs.
Integrated Unity IAP Service to handle real-money transactions.
- Catalog Configuration: Products are defined within the Unity IAP Catalog.
- Product Logic: Implemented 3 distinct consumable products (Currency Packs).
- Purchase Flow:
- User clicks a product button in the Store UI.
- App communicates with the underlying store (Google Play/App Store/FakeStore).
- On successful transaction callback, the
Oreamount is programmatically incremented.
Integrated the Firebase SDK to handle user retention via push notifications.
- Initialization: Firebase dependencies are initialized on
Startto ensure services are ready before gameplay begins. - Permissions: Implemented the logic to request Notification Permissions from the user immediately upon initialization (crucial for iOS and Android 13+).
- Retention Campaign: Configured a "Daily Engagement" notification via the Firebase Console.
- Logic: Triggers a notification if the user has not logged a session (interacted with the app) in the last 24 hours.