Migrate to Xamarin 3.3.2.1 (or later)

Overview

Due to changes in the way that Android handles GCM, if you are migrating the Xamarin SDK from an earlier release to 3.3.2.1 (or later), you must make the following changes to the AndroidManifest.xml.

Before you begin

Make sure the Xamarin SDK installed on your app is an earlier release to the 3.3.2.1 version.

πŸ“˜

Note:

Only Xamarin.Forms is supported.

πŸ‘

FCM users

If you are using FCM and are migrating the Xamarin SDK from an earlier release to 3.3.2.1 (or later), you do not need to make the following changes.

Add the new GCM receiver

Update the AndroidManifest.xml file to replace
<receiver android:name="co.acoustic.mobile.push.sdk.gcm.GcmBroadcastReceiver"
with the following:

<receiver android:name="com.google.android.gms.gcm.GcmReceiver"

πŸ“˜

Note:

To build with this class, you must include Google Play Services v7.5 (or later).

Add the customer listener service

Adds the customer listener service that is defined in Xamarin SDK 3.3.2.1 (and later). The service implements GCM behavior according to the new specification.
Update the AndroidManifest.xml file to replace
<service android:name="co.acoustic.mobile.push.sdk.gcm.GcmIntentService"/>
with the following:

<service android:name="co.acoustic.mobile.push.sdk.gcm.MceGcmListenerService" android:exported="false" >
  <intent-filter>
    <action android:name="com.google.android.c2dm.intent.RECEIVE" />
  </intent-filter>
</service>

For information about integrating the Mobile App Messaging SDK with your Xamarin app, see Getting Started with Mobile App Messaging in apps developed with Xamarin.


Did this page help you?