Skip to content

v3.0.0

Compare
Choose a tag to compare
@viperwarp viperwarp released this 16 Mar 02:02

v2.x -> v3.0 migration docs can be found here.

GCM

As of 3.0, the Carnival Android SDK is using the latest GcmReceiver broadcast receiver and will need to be declared in your manifest instead of Carnival's GcmBroadcastReceiver.

<receiver
  android:name="com.google.android.gms.gcm.GcmReceiver"
  android:exported="true"
  android:permission="com.google.android.c2dm.permission.SEND" >
  <intent-filter>
      <action android:name="com.google.android.c2dm.intent.RECEIVE" />
      <category android:name="${applicationId}" />
  </intent-filter>
</receiver>

Custom Notification Handling

GcmIntentService has been replaced with the CarnivalMessageListener using the new onMessageReceived() method. See the migration docs for more information.

Removed Deprecated Methods

  • Removed deprecated Carnival.startEngine() methods.
    • Use Carnival.startEngine(Context context, String appKey).
  • Removed deprecated method Carnival.getDeviceId().
    • Use Carnival.getDeviceId(CarnivalHandler<String> carnivalHandler).
  • Removed deprecated method Carnival.logEvent(String source, String value).
    • Use Carnival.logEvent(EventSource source, String value).