Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Google services json missing error

$
0
0

Just for testing purpose I’m trying to access native device features for which I’ve installed a blank new project and here’s my home.page.ts file

import { Component } from '@angular/core';

import { Flashlight } from '@ionic-native/flashlight/ngx';

// import { Sim } from '@ionic-native/sim/ngx';

import { Keyboard } from '@ionic-native/keyboard/ngx';

@Component({

  selector: 'app-home',

  templateUrl: 'home.page.html',

  styleUrls: ['home.page.scss'],

})

export class HomePage {

  constructor(

    private flashlight: Flashlight,

    // private sim: Sim,

    private keyboard: Keyboard) {

    flashlight.switchOn();

    // sim.getSimInfo().then(info => {

    //   alert('Sim info: ' + info);

    // });

    keyboard.show();

  }

}

But when I run the app using Android studio, I get this error, even though I’m not using any of google services.
File google-services.json is missing. The Google Services Plugin cannot function without it ionic
Upon searching on google, people were telling to place the file obtained from firebase bla bla bla in src or root folder, but the question is I’m not using any of firebase feature or any other

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>