12501 error: Ionic what keystore is the app building with

雨燕双飞 提交于 2019-12-06 06:16:42

SOLUTION

You need to use a Web Client ID and not an Android Client ID for Android (Go Figure!). This worked for me.

code:

        GooglePlus.login({
            'webClientId':'XXXXXX.apps.googleusercontent.com',
            'offline': true
        }).then(googleData => {

What I do not understand however, is that for iOS it works with the iOS Client id. So there's no consistency.

UPDATE

This seems to work for Android using the Web client. If you look at the return value googleData:

googleData.providerData[0].displayName 
googleData.providerData[0].photoUrl

For future references so it might help others like me:

My problem was the scope parameter:

{
    'scopes': 'email https://www.googleapis.com/auth/admin.directory.resource.calendar',
    'webClientId': 'XXXXXXXXXXX',
    'offline': true
}

It is a SPACE seperated list (I used comma seperated). Comma seperation (or any other than space seperation) will result in 12501.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!