質問編集履歴

1

文章の追加

2019/06/10 10:34

投稿

yuzujoe
yuzujoe

スコア49

test CHANGED
File without changes
test CHANGED
@@ -22,10 +22,6 @@
22
22
 
23
23
  .catch(err => {});
24
24
 
25
- // 'webClientId': "268170607060-8ul2up810gap06oil5cjaku686pujqbo.apps.googleusercontent.com" Production
26
-
27
- // 'webClientId': "26192727788-jcvo0647356hg6uadj7i9r952epjebps.apps.googleusercontent.com" Staging
28
-
29
25
  self.googlePlus
30
26
 
31
27
  .login({
@@ -153,3 +149,69 @@
153
149
 
154
150
 
155
151
  最下部のcatchに捕まっているので接続に成功していないと仮定しておりまして原因としては認証のエラーが吐かれていると思いそこ周りなのかどうかなのという点で見ており調べておりますが他に何か知見のある方こういうった情報が欲しいなどありましたら追加で掲載させて頂きますよろしくお願い致します。
152
+
153
+
154
+
155
+ `追記`
156
+
157
+
158
+
159
+ こちらですがアプリに設定されていたwebClientIDとgoogle-sevice.json及びGCPに登録されているものが違うものでしてこちらを確認してconfigに設定されているものをgoogle-service.jsonに変更したのですが解決にいたらずです
160
+
161
+
162
+
163
+ こちらがgoogleのlogin画面が出て実際に処理を行おうとした際に出てきたlogです
164
+
165
+
166
+
167
+
168
+
169
+ ```
170
+
171
+ D/CordovaActivity: Incoming Result. Request code = 1552
172
+
173
+ D/CordovaInterfaceImpl: Sending activity result to plugin
174
+
175
+ I/GooglePlugin: In onActivityResult
176
+
177
+ I/GooglePlugin: One of our activities finished up
178
+
179
+ I/GooglePlugin: Handling SignIn Result
180
+
181
+ I/GooglePlugin: Wasn't signed in
182
+
183
+ D/CordovaActivity: Resumed the activity.
184
+
185
+ W/com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
186
+
187
+ D/SystemWebChromeClient: file:///android_asset/www/build/main.js: Line 10446 : google login error
188
+
189
+ I/chromium: [INFO:CONSOLE(10446)] "google login error", source: file:///android_asset/www/build/main.js (10446)
190
+
191
+ D/SystemWebChromeClient: file:///android_asset/www/build/main.js: Line 10447 : 10
192
+
193
+ I/chromium: [INFO:CONSOLE(10447)] "10", source: file:///android_asset/www/build/main.js (10447)
194
+
195
+ D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=#############firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=###########}]
196
+
197
+
198
+
199
+ ```
200
+
201
+
202
+
203
+ その際のエラーの取得のコードはこちら
204
+
205
+
206
+
207
+ ```
208
+
209
+ .catch(err => {
210
+
211
+ console.log("google login error");
212
+
213
+ console.error(err);
214
+
215
+ });
216
+
217
+ ```