Promo Campaigns

Learn how to display personalized promo offers to your customers using Adapty React Native SDK

Promo Campaigns help you to increase revenue with targeted offers for your customers. You can use them to upsell, convert freemium users to paid ones, and win back churned subscribers.


Make sure to upload the push certificate for iOS and Firebase Cloud Messaging (FCM) server key for Android in an Adapty Dashboard, without them, we can't send push notifications

To get an available promo offers for a user, call getPromo() method:

try {
    const promo = await;
} catch (error: AdaptyError) {}

Response parameters:

  • promo: an AdaptyPromo. This object contains an info about the available promo offer. It can be null when there's no offer available

Listening for promo updates

Whenever a user's eligible promo offer list changes, Adapty will hook an event. To receive promo offers updates, use our listener:

adapty.addEventListener('onPromoReceived', (data) => {
  // do something

Handling push notifications

You have to pass push notifications to Adapty SDK to check, whether notifications are promo-based. To do this you have to tweak AppDelegate.m for iOS notifications


Importing Swift methods in Obj-C

Make sure, that you have Swift Bridging Header in your project set up

// imports ...
@import Adapty;
#import <Adapty/Adapty-umbrella.h>

// and then inside AppDelegate:
// @implementation AppDelegate
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
  [Adapty handlePushNotification:userInfo completion:^(AdaptyError *_) {

Did this page help you?