Show Menu
主題×

Xamarin components for Experience Cloud Solutions 4.x SDK

本主題說明如何開始使用 Mobile 解決方案 4.x SDK 的適用的 Xamarin 元件
最近更新日期: 2019 年 1 月 10 日

快速入門

Xamarin Components Store或NuGet Gallery中不再提供Adobe Mobile SDK。 若要下載 Xamarin 元件,請前往 GitHub

Android

將ADBMobile元件匯入Xamarin.Android專案:
  1. 開啟您的Xamarin專案
  2. Open References dialog and click the .Net Assembly tab.
  3. Select from the lib/Android folder. ADBMobile.XamarinAndroidBinding.dll
  4. Add your ADBMobileConfig.json file to the Assets folder of your project.
  5. 新增下列項目的權限:
    • INTERNET
    • ACCESS_NETWORK_STATE
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    
    
  6. 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" />
    
    
  7. 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>
    
    

iOS

將ADBMobile元件匯入Xamarin.iOS專案:
  1. 開啟您的Xamarin專案。
  2. Open References dialog and click the .Net Assembly tab.
  3. Select from the lib/ios-unified folder. ADBMobile.XamarinIOSBinding.dll
  4. 新增 ADBMobileConfig.json 檔案至專案。