まだどこにもないアプリを作る

アプリ開発でつまづいたところなどを中心に記事にして行きます。

Flutter でGooglePhotoアプリのサンプル作ってた時の備忘録

codelabs.developers.google.com

 

↑のサンプルでflutterでgoogle PhotoのAPIを使った簡単なアプリができるようになります。

 

 

このサイトどうりにやってみて出たエラーなどを書いていきます

 

エラー

Your app is missing support for the following URL schemes: com.googleusercontent.app

 

↓のサイト様を参考

FlutterへFirebase AuthenticationとGoogle Sign-Inで簡単にログイン機能を実装

 

 

URL Schemeにはエラー文で出てきたURLをそのまま入力

ただ追加するだけで他はいじらなくていい

f:id:rils_k:20211219145656p:plain

これでConnect with Google Photosを押してもクラッシュしなくなった。

 

 

2.

エラー 403: access_denied The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer

 

↓のサイト様参考

google chrome extension - Error 403: access_denied The developer hasn’t given you access to this app despite a new project being created - Stack Overflow

 

 

グーグルプラットフォームのコンソールでOAuth同意画面→テストユーザー

のAdd Userのところからテストで使いたいメアドを入力

f:id:rils_k:20211219151656p:plain



ここで入力したメールアドレスではエラーが出ないようになる