HTTPs request not working for mobile plugins

In my plugin, I make a request using obsidian.request api. This works on desktop, however the API request fails on mobile (Android) giving me this error.

here is my code that makes the request:

const getAllNotesFirebase = async (email: string, password: string) => {
  let notes = [];
  try {
    const body = {
        'email': email,
        'password': password,
    }
    const config = {
        method: 'post',
        url: 'https://us-central1-fleetingnotes-22f77.cloudfunctions.net/get_all_notes',
        contentType: 'application/json',
        body: JSON.stringify(body),
    };
    const res = await request(config);
    notes = JSON.parse(res);
  } catch (e) {
      console.log(e);
      throw 'Failed to retrieve notes from the database - Check credentials in settings & internet connection';
  }
  return notes;
}