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

Negative grayscale values - Bitmap
Android ListView font size and typeface
Android app memory limits
How to Maven-ise an ActionBarSherlock project?
Clear all activities
How to refer to activity element from viewpager
What theme attributes do I need to override to change the blue highlight color of my dialogs?
Loading picture from camera into ImageView
How to analyze data being passed by NFC tag to android phone?
push file with japanese filename to mounted sdcard in android emulator
Move in a ListView
Tapit “No available creatives”
How to Hide selected Media files from all applications in Android?
saving a button's state
Why receiver do not respond?
How can you detect if an Intent was not launched due to multiple possible targets?

Categories

HOME
rsa
camera
jsf-2.2
requirements
edge
nsbundle
babeljs
google-admin-sdk
data-visualization
gluon-mobile
fabric.io
comsol
3nf
capistrano3
atlassian-stash
red5
google-content-api
google-picker
git-extensions
apache2.4
systemtime
roslyn
qliksense
displaytag
dynamically-generated
roundup
perlbrew
shared
fragment-backstack
nstimer
entity-relationship-model
rpgle
datastax-enterprise-graph
sinch
ceylon
postback
jbutton
memory-address
getpixel
carriage-return
hibernate-search
pop3
slacktextviewcontroller
zoomify
loading
opensmpp
spring-mvc-test
setup.py
ogc
vmware-fusion
branching-and-merging
vaadin-charts
procfile
getchar
hammer.js
stdmap
git-flow
cmp
swingworker
rocks
stax
actor-platform
jclouds
android-wake-lock
query-by-example
aurora
aspen
httpruntime.cache
toast
directdraw
opl
dynatree
grgit
rewrite
wiredep
django-urls
sapscript
branch-and-bound
rdflib
nsurlsessiondatatask
uvc
cross-join
cosine-similarity
beatsmusic
sip-server
malformedurlexception
memset
high-resolution
rfc5322
away3d
windows-phone-8-sdk
model-driven-development
insert-id
stacky
http-status-code-410
device-width
curb
panda3d
pyunit
subgraph
listitem
fusefabric
apache-whirr
fsevents
qglwidget
ie-compatibility-mode
xslcompiledtransform
pbcopy

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