Skip to main content

Apphud

Written by Daria Mamchenkova

Apphud is a subscription management platform that helps mobile app developers implement, manage, and analyze in-app subscriptions and purchases. It provides SDKs for iOS, Android, and cross-platform frameworks that simplify subscription infrastructure, including purchase handling, receipt validation, subscription status tracking, and customer management.

Apphud also offers subscription analytics and tools for improving monetization strategies and managing subscription-based applications.

Before you begin

Apphud

1. Add the application to Affise MMP.

⚠️ Affise MMP SDK initialization is to be made before Apphud SDK initialization to make further integration function correctly.

3. Add all required events.

🔎 Affise recommends adding the following events:

  • Login

  • Start Trial

  • Subscription

4. In the Event Login, add the customer_user_id parameter to send the Apphud user ID. To pass the Apphud user ID, you are to make the Get random device ID request and to send the obtained value via the customer_user_id parameter.

⚠️ Using customer_user_id and synchronizing it between Affise and Apphud is obligatory, otherwise installs and subscriptions will not be attributed.

Examples of passing customer_user_id in events where you can use any event:

"events": [
{
"affise_event_id": "8002007e-017b-1000-a2fe-16198a99e2a1",
"affise_event_name": "AddToCart",
"affise_event_category": "native",
"affise_event_timestamp": 1734659765614,
"affise_event_first_for_user": false,
"affise_event_user_data": "Subscription",
"affise_event_data": {
"affise_event_add_to_cart_timestamp": 1734659765614
},
"affise_parameters": {
"affise_p_currency": "USD",
"affise_p_product_id": "subscription",
"affise_p_price": 14,
"affise_p_customer_user_id": "100C063B-267A-451B-9768-AC7C503C3E3D"
}
}
],

 "events": [
{
"affise_event_id": "90023l6e-013b-1000-a2de-20000a43e4a0",
"affise_event_name": "Login",
"affise_event_timestamp": 1728660123456,
"affise_event_first_for_user": true,
"affise_event_data": {
"affise_event_login_timestamp": 1728660123456
},
"affise_parameters": {
"affise_p_customer_user_id": "190C061B-538E-981B-7347-DC7C007C0E2D"
}
}
]

5. Set the integration with Apphud WebHook. For that, do the following:

a. In the Affise MMP panel, select the needed application.

b. In the application settings, select the Subscription tab.

c. In the Integrations dropdown list, select AppHud.

The system generates two fields: AppHud and Secure Code.

6. Go to the Apphud panel.

7. Go to Connections > Integrations > Server-to-Server webhooks.

8. Click Add connection and select a Source.

9. In the Name field, enter the name of the Webhook integration. In the Webhook URL field, enter the Affise Apphud link.

10. In the Secret token field, enter the Affise secure code.

11. In the Environment configuration section, select whether to send events for production purchases, sandbox events, or both.

12. Optional. Go to the Filters tab and set up filters if needed.

13. Optional. Go to the Events tab and enable events you want to receive webhooks for.

🔎 Affise recommends sending all events.

14. Optional. Save the connection and test it.

15. After successful testing, click Enable connection and then click Save.


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].​

Did this answer your question?