Closed TerranceSon closed 7 years ago
Hi, if in your app more the one module using google-play-servive, then all module has to use the same version of it.
it seem affect to ti.map once i force them to use this
adb logcat?
look like there is no available log output, as ti.map using google play service 9683000 if i used different value from this then my app will crash. I'm not understand much on this maybe i mistake in any point. just hope if googlesignin having any version that support with 9683000 then the map might be working.
Please open a console (terminal) and start adb (part of your SDK) with adb logcat
@AppWerft the App just crash there is no return any error on logcat, could you try with sample App and build with Ti.map and googlesignin module? There might be problem you will see.
We can share screen by skype and I can show you. @kontaktschmied
Hi, @AppWerft. it seem in android App there is no accessToken return as in ios platform, any property or thing to add to get accessToken in android device? the token Return in android it is ID Token not AccessToken.
The module uses the library import com.google.android.gms.auth.api.signin.
In case of success the API gives a bundle and this bundle will return by module. Currently I don't see more returns.
In the new version I ahve exposed all properties of https://developers.google.com/android/reference/com/google/android/gms/auth/api/signin/GoogleSignInAccount
Thank @AppWerft. Did you meant you will release a new version for Android soon? Seem i can not find google api to request some specific data with all the data return from the googlesignin module in Android platform, but it perfect data returning from IOS platform.
I can only expose datas from Android API. What do you need?
Yes Thank you, accessToken and userID seem my backend need to do something with thease later.
the return data: { // These six fields are included in all Google ID Tokens. "iss": "https://accounts.google.com", "sub": "110169484474386276334", "azp": "1008719970978-hb24n2dstb40o45d4feuo2ukqmcc6381.apps.googleusercontent.com", "aud": "1008719970978-hb24n2dstb40o45d4feuo2ukqmcc6381.apps.googleusercontent.com", "iat": "1433978353", "exp": "1433981953",
// These seven fields are only included when the user has granted the "profile" and // "email" OAuth scopes to the application. "email": "testuser@gmail.com", "email_verified": "true", "name" : "Test User", "picture": "https://lh4.googleusercontent.com/-kYgzyAWpZzJ/ABCDEFGHI/AAAJKLMNOP/tIXL9Ir44LE/s99-c/photo.jpg", "given_name": "Test", "family_name": "User", "locale": "en" }
it seem accessToken not provided by that, Im still facing with that problem.
Hi @TerranceSon, the module for Android returns:
"fullName" "email" "photo" "displayName" "familyName" "givenName" "accountName" "token"
Exactly as the native library does. You must use token
in your case and it should be enough IMO.
Thank @chmiiller, I just though I might be missed on something with module and not able to make it return assessToken same as in IOS version.
OK. keep everything in the module tigooglesignin the main thing to change is ti.map, you need to replace jar file in the lib folder of ti.map. that going to work. google-play-services-base.jar and google-play-services-map.jar try to find a version 10298000
On Mon, Jul 10, 2017 at 11:18 PM, diogoamorim2 notifications@github.com wrote:
Hi,
I got similar problem with same module combination, but if a copy file "google-play-services-base" from your module to ti.map folder, I got "Failed to run dexer:", was trying change the "" in tiapp and timodule, but still got no sucess. Can you help me with any way?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AppWerft/Ti.GoogleSignIn/issues/6#issuecomment-314156942, or mute the thread https://github.com/notifications/unsubscribe-auth/AKyBd6yVAx-fC59JcXfwLEJC0PzGBHELks5sMk7OgaJpZM4Neu7s .
Great you found it!
Hello, I am trying to use the module Ti.GoogleSignIn latest version in my project, but it look like i have no luck to make this both work with ti.map and Ti.GoogleSignIn. if making configuration for the Ti.GoogleSignIn to get it work, the map will always crash. Hope there a solution from you guys. Thank.