This topic describes how to get started using Xamarin components for Mobile solutions 4.x SDK.
Last Updated: January 10, 2019
Important: Adobe Mobile SDK is no longer available in the Xamarin Components Store or in the NuGet Gallery. To download the Xamarin components, go to GitHub.
Import the ADBMobile Component to your Xamarin.Android project:
-
Open your Xamarin project
-
Open References dialog and click the .Net Assembly tab.
-
Select
ADBMobile.XamarinAndroidBinding.dll
from the lib/Android folder. -
Add your
ADBMobileConfig.json
file to the Assets folder of your project. -
Add permissions for:
INTERNET
ACCESS_NETWORK_STATE
<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>
Import the ADBMobile Component to your Xamarin.iOS project:
- Open your Xamarin project.
- Open References dialog and click the .Net Assembly tab.
- Select
ADBMobile.XamarinIOSBinding.dll
from the lib/ios-unified folder. - Add your
ADBMobileConfig.json
file to the project.