This topic covers an automatic integration (basic) where you just need to add one method to your project & plist configuration file.
For manual method that gives you greater control, and lets you override behaviour see Manual Integration - Objective-C or Manual Integration - Swift.
Objective-C
Open your AppDelegate.m file, and add the following import statement:
#import <AppoxeeSDK/AppoxeeSDK.h> |
Swift
Add to your Objective-C bridging header the following import statement
#import <AppoxeeSDK/AppoxeeSDK.h> |
Please note that if the above flag does not match your DC environment you will see the following error in your Xcode console
[Appoxee Debug] Application Activated [Appoxee Error] Network protocol error with HTTP code: 403 [Appoxee Error] Network protocol error with HTTP code: 403 |
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>sdk</key> <dict> <key>sdk_key</key> <string></string> <key>is_eu</key> <!-- Optional, indicate if Data center is located in EU / US --> <false/> <key>open_landing_page_inside_app</key> <!-- Optional, indicate if landing page should open inside the app or via Safari --> <false/> </dict> </dict> </plist> |
Push Permission Auth Dialog: Please note that the "Request Push notification permission" dialog will be called on first app lunch. In order to show the dialog based on your own logic refer to : Request Notification at Best Time Handle Foreground Notifications: From OS 10, you can decided whether notifications will be displayed when app is in the foreground. Default behaviour will be that notifications are not displayed when app is in the foreground, see details on Handle Foreground Notifications Becoming UNUserNotificationCenterDelegate: If you choose to become UNUserNotificationCenterDelegate, it will require you to forward its delegate methods to Appoxee.See details on Becoming UNUserNotificationCenterDelegate |