setAuthConfig(FCPATH . $ci->config->item('path_service_account')); $client->addScope("https://www.googleapis.com/auth/firebase.messaging"); $accessToken = $client->fetchAccessTokenWithAssertion(); return $accessToken['access_token']; } Login Akun