Building your project
When you build for iOS, an Xcode Project is created. By default, the ADBMobileWrapper.mm and AdobeMobileLibrary.a files will be in your new project's Libraries group. Perform the following manual steps required to build you app:
- Add your ADBMobileConfig.json file to the project.Ensure that it is a member of the build any targets necessary.
- In the Build Phases tab of your project, add a link to the following libraries:
- SystemConfiguration.framework (This library might be linked already.)
To use Local Notification In-App messages from the SDK, you must call ADBMobile.EnableLocalNotifications(); from the Start method in your first Unity Scene.
When you build for Android, the apk file already includes the ADBMobileConfig.json file in the correct location. By default, the AndroidManifest.xml file in your /Plugins/Android folder is also used.
If you need to use your own custom manifest file, the following changes should be added.
Add permissions for:
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
If you are using In-app messaging, add the following activity and receiver:
<activity android:name="com.adobe.mobile.MessageFullScreenActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" /> <receiver android:name="com.adobe.mobile.MessageNotificationHandler" />
If you are using acquisition, add the following receiver:
<receiver android:name="com.your.package.name.GPBroadcastReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver>