android


Mobile Hub Sample App Google Sign -in canceled if applicationId changes


I am using the Sample App from Mobile Hub v0.16 and used it successfully for sign-in to google, userpools etc.
But when change the applicationID in build.gradle(Module:app) from
applicationId "com.amazon.mysampleapp" to something else the login with google does no longer work (Login canceled).
What is the reason for this? How do I change the applicationID in a way that the sign-in still works?
Follow-up:
For the cognito federated pool I set up google credentials for
a) Web application with ClientID1
b) Android with ClientID2 where as commented by Jeff Solinsky the app package should be used
Where do these client IDs go?
My understanding is that ClientID1 is used in the federated pool ->authentication providers->google+ ->google client ID
Then in the example app from mobilehub I put ClientID1 in AWSConfiguration.GOOGLE_CLIENT_ID
Where does CLientID2 get used?
You must set the package name for your Google App's Android Package name in the Google backend. Navigate to the Google API Console under credentials (https://console.developers.google.com/apis/credentials). Find your Android client ID in the list and make sure the setting for it has the correct Signing-certificate fingerprint and package name for your app.
You must also ensure that the Android client ID is set in the IAM Console under Identity Providers. Specifically, under the provider "accounts.google.com" an audience should be set containing the Android Client ID. This is automatically performed for you by Mobile Hub when you have update your project by configuring the Google Android Client ID for the Google Sign-in Provider in the User Sign-in feature from Mobile Hub's Console.

Related Links

minimum android api for google cardboard
TextView change when onClick in RecyclerView
How to show image on the right hand side of the notification in android
Textview with background color
Keyboard Hidden crashes on android Lollipop
DayLightSavingMode issue in Android
Trying to show to chosen day as text after the DatePicker
Android device shutdown because of low battery
jsch ssh execute command and get output is too slow
Notify users for new version of Android app
How to select all checkBox by clicking on the top checkbox in recyclerview? only with the help of setonCheckedChangedListener?
What am I missing/what do I need to fix to make this code work?
How to send a request to add users in Quickblox
MVVM Cross Nesting of fragments gives ViewModel Property of Fragment as NULL
How to save credit card details in Paypal vault via Android and how to retreave them to use them in future
android finish() vs activity.finish()

Categories

HOME
asp.net-web-api
gdb
awk
wakanda
dns
object
flex
swt
r-googlesheets
alsa
code-coverage
opengl-3
modal-dialog
bing-maps
ipmitool
google-form
pybossa
magnetic-cards
alpacajs
esoteric-languages
package.json
chargify
android-7.0-nougat
topology
charles
lilypond
user-experience
squashfs
strongname
froala
windows-server-2003
onload
interbase
fable-f#
firebase-analytics
sqsh
nsurl
complex-numbers
powershell-ise
erb
jett
contacts
keras-layer
fossil
mnist
processwire
fiware-cygnus
kill
glm-math
plr
oracle-service-bus
facebook-social-plugins
linter
reindex
truezip
android-testing
jqchart
lsyncd
d3-force-directed
pybrain
universal-analytics
beamer
jodd
cassia
query-by-example
database-relations
mobiledoc-kit
toran-proxy
gocql
iokit
pypiserver
skspritenode
canvg
uvc
qtwebengine
adehabitathr
cross-join
big-ip
deform
easyrtc
cocos3d
jama
cuba
cancellation
websphere-esb
qscrollarea
script#
cmmi
workitem
pclzip
actiondispatch
curb
cakephp-1.2
infobright
entity-attribute-value
htdocs
multiplatform
quotation-marks
timertask
lobo-cobra
cuda.net
localizable.strings
application-planning

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App