I am trying to use plugin for background location tracking on android capacitor suppose to register plugin automatically in MainActivity.java but thats not happening. I tried to use that manually but that is also not happening
package com.siloc.users;
import com.getcapacitor.BridgeActivity;
import android.os.Bundle;
import com.getcapacitor.BridgeActivity;
import com.getcapacitor.Plugin;
import java.util.ArrayList;
import com.hemangkumar.capacitorgooglemaps.CapacitorGoogleMaps;
import com.equimaps.capacitor_background_geolocation.BackgroundGeolocation;
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
registerPlugin(CapacitorGoogleMaps.class);
registerPlugin(BackgroundGeolocation.class);
}
}
How i could do that ?