Ionic capacitor app build android studio FCM Push notifications uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Below file code:-

package io.ionic.starter;


import android.os.Bundle;

import com.getcapacitor.BridgeActivity;

import com.getcapacitor.Plugin;

import java.util.ArrayList;

public class MainActivity extends BridgeActivity {


  public void onCreate(Bundle savedInstanceState) {


    // Initializes the Bridge

    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{

      // Additional plugins you've installed go here

      // Ex: add(TotallyAwesomePlugin.class);





After installing Community FCM plugin I am not getting token.

Is there any issue with this code?