Git Product home page Git Product logo

Comments (16)

puf avatar puf commented on August 16, 2024

The value you enter for GoogleClientId needs to be a OAuth client ID for a web application.
Most likely you entered an Android client ID.

from firebaseui-android.

troy21688 avatar troy21688 commented on August 16, 2024

I am setting it up for Android, do I still need to create it for a web
application?

On Sat, Jan 9, 2016 at 6:42 PM, Frank van Puffelen <[email protected]

wrote:

The value you enter for GoogleClientId needs to be a OAuth client ID for a web
application
.
Most likely you entered an Android client ID.


Reply to this email directly or view it on GitHub
#56 (comment)
.

Troy Chuinard, CPA

from firebaseui-android.

puf avatar puf commented on August 16, 2024

Yes. Firebase Authentication is web based, even when you use it from an
Android app. Your users won't notice this, but you'll need to specify the
key for a web application.

On Sat, Jan 9, 2016 at 4:43 PM troy21688 [email protected] wrote:

I am setting it up for Android, do I still need to create it for a web
application?

On Sat, Jan 9, 2016 at 6:42 PM, Frank van Puffelen <
[email protected]

wrote:

The value you enter for GoogleClientId needs to be a OAuth client ID for
a web
application
.
Most likely you entered an Android client ID.


Reply to this email directly or view it on GitHub
<
#56 (comment)

.

Troy Chuinard, CPA


Reply to this email directly or view it on GitHub
#56 (comment)
.

from firebaseui-android.

troy21688 avatar troy21688 commented on August 16, 2024

I am still getting the same error.
On Jan 9, 2016 11:03 PM, "Frank van Puffelen" [email protected]
wrote:

Yes. Firebase Authentication is web based, even when you use it from an
Android app. Your users won't notice this, but you'll need to specify the
key for a web application.

On Sat, Jan 9, 2016 at 4:43 PM troy21688 [email protected] wrote:

I am setting it up for Android, do I still need to create it for a web
application?

On Sat, Jan 9, 2016 at 6:42 PM, Frank van Puffelen <
[email protected]

wrote:

The value you enter for GoogleClientId needs to be a OAuth client ID
for
a web
application
.
Most likely you entered an Android client ID.


Reply to this email directly or view it on GitHub
<

#56 (comment)

.

Troy Chuinard, CPA


Reply to this email directly or view it on GitHub
<
#56 (comment)

.


Reply to this email directly or view it on GitHub
#56 (comment)
.

from firebaseui-android.

troy21688 avatar troy21688 commented on August 16, 2024

I will experiment, but I did change it to a web-based token. It appears I
am getting the same error. Have other people experienced this issue?

On Sat, Jan 9, 2016 at 11:03 PM, Troy Chuinard [email protected] wrote:

I am still getting the same error.
On Jan 9, 2016 11:03 PM, "Frank van Puffelen" [email protected]
wrote:

Yes. Firebase Authentication is web based, even when you use it from an
Android app. Your users won't notice this, but you'll need to specify the
key for a web application.

On Sat, Jan 9, 2016 at 4:43 PM troy21688 [email protected]
wrote:

I am setting it up for Android, do I still need to create it for a web
application?

On Sat, Jan 9, 2016 at 6:42 PM, Frank van Puffelen <
[email protected]

wrote:

The value you enter for GoogleClientId needs to be a OAuth client ID
for
a web
application
.
Most likely you entered an Android client ID.


Reply to this email directly or view it on GitHub
<

#56 (comment)

.

Troy Chuinard, CPA


Reply to this email directly or view it on GitHub
<
#56 (comment)

.


Reply to this email directly or view it on GitHub
#56 (comment)
.

Troy Chuinard, CPA

from firebaseui-android.

mysliwiec-tech avatar mysliwiec-tech commented on August 16, 2024

I experience the same problems as @troy21688. In logcat I see "user closed login dialog"

from firebaseui-android.

troy21688 avatar troy21688 commented on August 16, 2024

It also looks like the official Google documentation has different instructions. It does not mention adding the meta-data to the Manifest file, and I am uncertain what key to add to my Strings.xml file. The json file that you have to create has its own key, however the instructions also say to add an Auth 2.0 key for the web server. Very confusing, has anyone actually gotten the Google Sign In to work? Here are the instructions I am following, directly from Google:
https://developers.google.com/identity/sign-in/android/start-integrating

from firebaseui-android.

puf avatar puf commented on August 16, 2024

I enable Google auth regularly using FirebaseUI. But the steps are
convoluted indeed.
Look for the 0.3.1 release to drastically simplify what you need to do in
your Android project.
But the steps in the developer console will remain the same: you will need
(at least) two OAuth 2.0 client IDs. One of type "Web application" and one
of type Android, which matches the package name of your app and SHA1 of the
machine where you run the gradle build/Android Studio.

On Mon, Jan 11, 2016 at 12:13 PM troy21688 [email protected] wrote:

It also looks like the official Google documentation has different
instructions. It does not mention adding the meta-data to the Manifest
file, and I am uncertain what key to add to my Strings.xml file. The json
file that you have to create has its own key, however the instructions also
say to add an Auth 2.0 key for the web server. Very confusing, has anyone
actually gotten the Google Sign In to work? Here are the instructions I am
following, directly from Google:
https://developers.google.com/identity/sign-in/android/start-integrating


Reply to this email directly or view it on GitHub
#56 (comment)
.

from firebaseui-android.

troy21688 avatar troy21688 commented on August 16, 2024

Thanks for filling me in Frank. Definitely new to this process and
programming in general. Regardless of how many apps I have and the number
of keystore files I generate for Android, do I always only have 1 SHA1 key?
I want to make sure that I didn't duplicate those on accident when I
created multiple keystore files.

Also, when do you expect the new UI library to be released?

Appreciate the help.

-Troy

On Mon, Jan 11, 2016 at 2:42 PM, Frank van Puffelen <
[email protected]> wrote:

I enable Google auth regularly using FirebaseUI. But the steps are
convoluted indeed.
Look for the 0.3.1 release to drastically simplify what you need to do in
your Android project.
But the steps in the developer console will remain the same: you will need
(at least) two OAuth 2.0 client IDs. One of type "Web application" and one
of type Android, which matches the package name of your app and SHA1 of the
machine where you run the gradle build/Android Studio.

On Mon, Jan 11, 2016 at 12:13 PM troy21688 [email protected]
wrote:

It also looks like the official Google documentation has different
instructions. It does not mention adding the meta-data to the Manifest
file, and I am uncertain what key to add to my Strings.xml file. The json
file that you have to create has its own key, however the instructions
also
say to add an Auth 2.0 key for the web server. Very confusing, has anyone
actually gotten the Google Sign In to work? Here are the instructions I
am
following, directly from Google:
https://developers.google.com/identity/sign-in/android/start-integrating


Reply to this email directly or view it on GitHub
<
#56 (comment)

.


Reply to this email directly or view it on GitHub
#56 (comment)
.

Troy Chuinard, CPA

from firebaseui-android.

troy21688 avatar troy21688 commented on August 16, 2024

Also, not sure if I am doing something wrong, but I am getting an error
with the Twitter login as well. Let me know if the Twitter login is being
updated in the next release and I will ignore for now:

01-11 15:04:20.474 31823-31823/? D/AndroidRuntime: Shutting down VM
01-11 15:04:20.474 31823-31823/? W/dalvikvm: threadid=1: thread exiting
with uncaught exception (group=0x41819da0)
01-11 15:04:20.474 1181-1181/? D/WfcActivityStateReceiver: onReceive():
packageName=com.sourcey.materialloginexample, activityState=resume
01-11 15:04:20.474 31823-31823/? E/AndroidRuntime: FATAL EXCEPTION: main
Process:
com.sourcey.materialloginexample, PID: 31823

java.lang.NullPointerException
at
com.firebase.ui.auth.twitter.TwitterPromptActivity$1.onPostExecute(TwitterPromptActivity.java:98)
at
com.firebase.ui.auth.twitter.TwitterPromptActivity$1.onPostExecute(TwitterPromptActivity.java:71)
at
android.os.AsyncTask.finish(AsyncTask.java:632)
at
android.os.AsyncTask.access$600(AsyncTask.java:177)
at
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at
android.os.Handler.dispatchMessage(Handler.java:102)
at
android.os.Looper.loop(Looper.java:146)
at
android.app.ActivityThread.main(ActivityThread.java:5692)
at
java.lang.reflect.Method.invokeNative(Native Method)
at
java.lang.reflect.Method.invoke(Method.java:515)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at
dalvik.system.NativeStart.main(Native Method)
01-11 15:04:20.484 767-931/? D/PointerIcon: setMouseIconStyle1 pointerType:
1001iconType:101 flag:0

On Mon, Jan 11, 2016 at 2:55 PM, Troy Chuinard [email protected] wrote:

Thanks for filling me in Frank. Definitely new to this process and
programming in general. Regardless of how many apps I have and the number
of keystore files I generate for Android, do I always only have 1 SHA1 key?
I want to make sure that I didn't duplicate those on accident when I
created multiple keystore files.

Also, when do you expect the new UI library to be released?

Appreciate the help.

-Troy

On Mon, Jan 11, 2016 at 2:42 PM, Frank van Puffelen <
[email protected]> wrote:

I enable Google auth regularly using FirebaseUI. But the steps are
convoluted indeed.
Look for the 0.3.1 release to drastically simplify what you need to do in
your Android project.
But the steps in the developer console will remain the same: you will need
(at least) two OAuth 2.0 client IDs. One of type "Web application" and one
of type Android, which matches the package name of your app and SHA1 of
the
machine where you run the gradle build/Android Studio.

On Mon, Jan 11, 2016 at 12:13 PM troy21688 [email protected]
wrote:

It also looks like the official Google documentation has different
instructions. It does not mention adding the meta-data to the Manifest
file, and I am uncertain what key to add to my Strings.xml file. The
json
file that you have to create has its own key, however the instructions
also
say to add an Auth 2.0 key for the web server. Very confusing, has
anyone
actually gotten the Google Sign In to work? Here are the instructions I
am
following, directly from Google:

https://developers.google.com/identity/sign-in/android/start-integrating


Reply to this email directly or view it on GitHub
<
#56 (comment)

.


Reply to this email directly or view it on GitHub
#56 (comment)
.

Troy Chuinard, CPA

Troy Chuinard, CPA

from firebaseui-android.

puf avatar puf commented on August 16, 2024

If you think you've found a second issue, open a separate issue for that
please.

On Mon, Jan 11, 2016 at 1:05 PM troy21688 [email protected] wrote:

Also, not sure if I am doing something wrong, but I am getting an error
with the Twitter login as well. Let me know if the Twitter login is being
updated in the next release and I will ignore for now:

01-11 15:04:20.474 31823-31823/? D/AndroidRuntime: Shutting down VM
01-11 15:04:20.474 31823-31823/? W/dalvikvm: threadid=1: thread exiting
with uncaught exception (group=0x41819da0)
01-11 15:04:20.474 1181-1181/? D/WfcActivityStateReceiver: onReceive():
packageName=com.sourcey.materialloginexample, activityState=resume
01-11 15:04:20.474 31823-31823/? E/AndroidRuntime: FATAL EXCEPTION: main
Process:
com.sourcey.materialloginexample, PID: 31823

java.lang.NullPointerException
at

com.firebase.ui.auth.twitter.TwitterPromptActivity$1.onPostExecute(TwitterPromptActivity.java:98)
at

com.firebase.ui.auth.twitter.TwitterPromptActivity$1.onPostExecute(TwitterPromptActivity.java:71)
at
android.os.AsyncTask.finish(AsyncTask.java:632)
at
android.os.AsyncTask.access$600(AsyncTask.java:177)
at
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at
android.os.Handler.dispatchMessage(Handler.java:102)
at
android.os.Looper.loop(Looper.java:146)
at
android.app.ActivityThread.main(ActivityThread.java:5692)
at
java.lang.reflect.Method.invokeNative(Native Method)
at
java.lang.reflect.Method.invoke(Method.java:515)
at

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at
dalvik.system.NativeStart.main(Native Method)
01-11 15:04:20.484 767-931/? D/PointerIcon: setMouseIconStyle1 pointerType:
1001iconType:101 flag:0

On Mon, Jan 11, 2016 at 2:55 PM, Troy Chuinard [email protected] wrote:

Thanks for filling me in Frank. Definitely new to this process and
programming in general. Regardless of how many apps I have and the number
of keystore files I generate for Android, do I always only have 1 SHA1
key?
I want to make sure that I didn't duplicate those on accident when I
created multiple keystore files.

Also, when do you expect the new UI library to be released?

Appreciate the help.

-Troy

On Mon, Jan 11, 2016 at 2:42 PM, Frank van Puffelen <
[email protected]> wrote:

I enable Google auth regularly using FirebaseUI. But the steps are
convoluted indeed.
Look for the 0.3.1 release to drastically simplify what you need to do
in
your Android project.
But the steps in the developer console will remain the same: you will
need
(at least) two OAuth 2.0 client IDs. One of type "Web application" and
one
of type Android, which matches the package name of your app and SHA1 of
the
machine where you run the gradle build/Android Studio.

On Mon, Jan 11, 2016 at 12:13 PM troy21688 [email protected]
wrote:

It also looks like the official Google documentation has different
instructions. It does not mention adding the meta-data to the Manifest
file, and I am uncertain what key to add to my Strings.xml file. The
json
file that you have to create has its own key, however the instructions
also
say to add an Auth 2.0 key for the web server. Very confusing, has
anyone
actually gotten the Google Sign In to work? Here are the instructions
I
am
following, directly from Google:

https://developers.google.com/identity/sign-in/android/start-integrating


Reply to this email directly or view it on GitHub
<

#56 (comment)

.


Reply to this email directly or view it on GitHub
<
#56 (comment)

.

Troy Chuinard, CPA

Troy Chuinard, CPA


Reply to this email directly or view it on GitHub
#56 (comment)
.

from firebaseui-android.

abeisgoat avatar abeisgoat commented on August 16, 2024

This appears to be resolved and forked into another issue, closing.

from firebaseui-android.

Queskr avatar Queskr commented on August 16, 2024

How/where was it resolved?

from firebaseui-android.

hakimrie avatar hakimrie commented on August 16, 2024

I got this crash log from crashlytic

Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=9000, result=0, data=Intent { (has extras) }} to activity {com.hakimlabs.quran/com.quran.labs.androidquran.ui.QuranActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference
       at android.app.ActivityThread.deliverResults(ActivityThread.java:3699)
       at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
       at android.app.ActivityThread.-wrap16(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5417)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference
       at com.firebase.ui.auth.core.FirebaseLoginDialog.reset(FirebaseLoginDialog.java:97)
       at com.firebase.ui.auth.core.FirebaseLoginBaseActivity.resetFirebaseLoginPrompt(FirebaseLoginBaseActivity.java:100)
       at com.quran.labs.androidquran.ui.QuranActivity.onFirebaseLoginUserError(QuranActivity.java:441)
       at com.firebase.ui.auth.core.FirebaseLoginBaseActivity$1.onUserError(FirebaseLoginBaseActivity.java:123)
       at com.firebase.ui.auth.core.FirebaseLoginDialog$1.onUserError(FirebaseLoginDialog.java:118)
       at com.firebase.ui.auth.google.GoogleAuthProvider.onActivityResult(GoogleAuthProvider.java:111)
       at com.firebase.ui.auth.core.FirebaseLoginDialog.onActivityResult(FirebaseLoginDialog.java:54)
       at com.firebase.ui.auth.core.FirebaseLoginBaseActivity.onActivityResult(FirebaseLoginBaseActivity.java:83)
       at android.app.Activity.dispatchActivityResult(Activity.java:6428)
       at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
       at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
       at android.app.ActivityThread.-wrap16(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5417)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

from firebaseui-android.

dazza5000 avatar dazza5000 commented on August 16, 2024

I have the same issue as @hakimrie . Has anyone found a solution?

from firebaseui-android.

fdambrosio avatar fdambrosio commented on August 16, 2024

I have the same problem

from firebaseui-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.