Android push notifications: Migration from GCM to FCM.

Google has deprecated GCM (Google Cloud Messaging) and will remove its support as soon as April 11, 2019. For supporting Android push notifications from V-Director after this date, you need upgrade your app with the latest Vidinoti SDK.

Follow the steps described here for migrating your app to the new Firebase Cloud Messaging.

Gradle build file

In your app App-level build.gradle (yourProject/yourAppModule/build.gradle), remove any GCM dependency.

Delete the line compile ''.

AndroidManifest file

Delete the permission related to GCM.

    <!--  Permissions for notifications -->
    <uses-permission android:name="" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />

    <permission android:name="com.mycompany.myarapplication.permission.C2D_MESSAGE" android:protectionLevel="signature" />
    <uses-permission android:name="com.mycompany.myarapplication.permission.C2D_MESSAGE" />

Delete the service and receiver.

    <!-- For notifications -->
    <service android:name=".GcmService" android:exported="false">
            <action android:name="" />
        android:permission="" >
            <action android:name="" />
            <category android:name="com.mycompany.myarapplication" />

Delete unused class

Delete the GcmService class that was referenced in your AndroidManifest.xml file.

Add support for FCM

Follow the guide available in the documentation: Configure push notifications for Android