Cross-Promote for Cocoa apps
Cross-promotion allows you to promote the family apps within your app and gives you an opportunity to make your users aware of all the different apps you develop. Refer to the user guide to configure your apps for cross-promotion.
Installation
Copiedsource 'https://github.com/CocoaPods/Specs.git'
target '[TARGET NAME]' do
pod 'AppticsCrossPromotion'
end
- Add the apps in the web console and the SDK will show them to the customers. Refer to the user guide.
- Add 'AppticsCrossPromotion' in Podfile to install the promotional apps module and run "pod install".
- To enable the promotional apps, use enableCrossPromotionAppsList of AppticsConfig class.
CopiedAppticsConfig.defaultConfig.enableCrossPromotionAppsList=true;
CopiedAppticsConfig.default.enableCrossPromotionAppsList=true;
Import
Copied#import <AppticsCrossPromotion/AppticsCrossPromotion-Swift.h>
Copiedimport AppticsCrossPromotion
- To return a UIViewcontroller with data, use the below method of PromotedAppsKit class.
Copied+(UIViewController) getPromotionalAppsViewController:(NSString Nullable)sectionHeader1 : (NSString* Nullable)sectionHeader2;
- To present the promote apps ViewController directly, use the below method. You can also customize the UI by assigning values to properties of APThemeSwiftManager.crosspromotheme.
Copied+(void) presentPromotionalAppsController:(NSString Nullable)sectionHeader1 : (NSString Nullable)sectionHeader2;
- The table of apps by default has two sections, i.e., 'Apps that you may like' and 'More apps from us'.
- sectionHeader1 - Title of the Apps being shown on the screen for the first section. This is the replacement of the 'Apps that you may like'.
- sectionHeader2 - Title of the Apps being shown on the screen for the second section. This is the replacement of the 'More apps from us'.
- For the button in the PromotionalAppsController to show correct install status, add a scheme in info.plist or else OS will throw an error when SDK check for install status. If the scheme is not added, the button title will be "GET" If the scheme is added then, the title will be changed according to the install status provided by the OS. i.e. "OPEN" or "GET"