Hi there.
I tried to implement google drive API follow this page : https://hintdesk.com/2018/08/24/angular-google-drive-api-example/
I started with:
gapi.load('client:auth2', () => {
return gapi.client.init({
apiKey: API_KEY,
clientId: CLIENT_ID,
discoveryDocs: DISCOVERY_DOCS,
scope: SCOPES,
}).then(() => {
this.googleAuth = gapi.auth2.getAuthInstance();
resolve();
});
});
then i signed by:
this.googleAuth.signIn({
prompt: 'consent'
}).then(function() => {
// use the api
});
Every thing ok on ionic browser.
But when i run it on my android device, the status bar always load. I can’t get access token.
Anyone else know how to solve this problem. I 'll be very appreciate with your help.