{"id":225,"date":"2018-06-13T19:09:38","date_gmt":"2018-06-13T10:09:38","guid":{"rendered":"http:\/\/milennium9.godohosting.com\/wordpress\/?p=225"},"modified":"2018-06-13T19:10:03","modified_gmt":"2018-06-13T10:10:03","slug":"unity3d-google-play-games-plug%ec%9d%b8%ec%97%90%ec%84%9c-error_not_authorized-%ec%98%a4%eb%a5%98%eb%a1%9c-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%ec%8b%a4%ed%8c%a8-%eb%98%90%eb%8a%94-idtoken-%eb%b0%9b","status":"publish","type":"post","link":"http:\/\/milennium9.godohosting.com\/wordpress\/?p=225","title":{"rendered":"[Unity3D] Google Play Games Plugin\uc5d0\uc11c ERROR_NOT_AUTHORIZED \uc624\ub958\ub85c \ub85c\uadf8\uc778 \uc2e4\ud328 \ub610\ub294 IdToken \ubc1b\uc544\uc624\uae30 \uc2e4\ud328"},"content":{"rendered":"<p>Unity\uc5d0\uc11c Google \ub85c\uadf8\uc778\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud574\uc11c\ub294 Google Play Games Service Plugin(gpgs)\uc744 \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<p>\uc800\ub294 Firebase\ub97c \ud1b5\ud574\uc11c Google Play, Facebook, Guest \ub85c\uadf8\uc778\uc744 \uad6c\ud604\ud558\ub294 \uacfc\uc815\uc774\uc5c8\uace0, Firebase\uc5d0\uc11c Google Play \uc778\uc99d\uc744 \uc704\ud574\uc11c\ub294 Google Play\uc5d0\uc11c IdToken\uc744 \ubc1b\uc544\uc11c Firebase \uc778\uc99d \ubaa8\ub4c8\uc5d0 \uc804\ub2ec\ud574\uc918\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<p>\ucc98\uc74c \ub9cc\ub09c \ubb38\uc81c\ub294 gpgs\uc5d0\uc11c \ub85c\uadf8\uc778\uc740 \uc131\uacf5\ud558\uc5ec Social.localUser.id \uc815\ubcf4\ub294 \ub4e4\uc5b4 \uc788\uc9c0\ub9cc IdToken, Email, ServerAuthCode \ub4f1\uc758 \uc815\ubcf4\ub294 \ube44\uc5b4\uc788\uc5b4\uc11c Firebase\uc5d0 \uc778\uc99d \uc815\ubcf4\ub97c \ub118\uae38 \uc218 \uc5c6\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774\ub54c\uc758 gpgs \ucd08\uae30\ud654 \ucf54\ub4dc\ub294 \uc544\ub798\uc758 \uc0c1\ud0dc\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"lang:c# mark:3-7 decode:true\">\/\/ GPG\ub97c Activate()\ud558\uba74 Social.localUser\uac00 GPG\uc758 \uacc4\uc815 \uc815\ubcf4\ub85c \uc124\uc815\ub428\r\n\/\/ \uc548\ub4dc\ub85c\uc774\ub4dc \ube4c\ub354 \ucd08\uae30\ud654\r\nPlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()\r\n    .RequestServerAuthCode(false)\r\n    .RequestIdToken()\r\n    .RequestEmail()\r\n    .Build();\r\n\r\nPlayGamesPlatform.InitializeInstance(config);\r\n\r\n\/\/ \uad6c\uae00 \ud50c\ub808\uc774 \ub85c\uadf8\ub97c \ud655\uc778\ud560\ub824\uba74 \ud65c\uc131\ud654\r\nPlayGamesPlatform.DebugLogEnabled = true;\r\n\r\n\/\/ \uad6c\uae00 \ud50c\ub808\uc774 \ud65c\uc131\ud654\r\nPlayGamesPlatform.Activate();<\/pre>\n<p>\ubd84\uba85\ud788 config\ub97c \ud1b5\ud574\uc11c RequestIdToken()\uc744 \ud638\ucd9c\ud558\uc5ec \uc694\uccad\uc744 \ucd94\uac00\ud558\uc600\uc74c\uc5d0\ub3c4 \ubd88\uad6c\ud558\uace0 IdToken \ud56d\ubaa9\uc774 \ube44\uc5b4\uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>Unity Log\ub97c \ud655\uc778\ud55c \uac83\uc73c\ub85c\ub294 \uc6d0\uc778\uc744 \ucc3e\uc744 \uc218 \uc5c6\uc5c8\uace0, Android Studio\uc758 Logcat\uc73c\ub85c \ub514\ubc14\uc774\uc2a4 \ub85c\uadf8\ub97c \ud655\uc778\ud558\ub358 \uc911 \uc774\uc0c1\ud55c \ubd80\ubd84\uc744 \ubc1c\uacac\ud560 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"\">06-11 22:50:17.497 7610-7663\/? I\/Unity: Try google play login\r\n06-11 22:50:17.510 7610-7663\/? I\/Unity: Starting Auth with token client.\r\n06-11 22:50:17.563 7610-7663\/? W\/Unity: !!! [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 WARNING: Creating new PlayGamesPlatform\r\n \r\n (Filename: \/Users\/builduser\/buildslave\/unity\/build\/artifacts\/generated\/common\/runtime\/DebugBindings.gen.cpp Line: 51)\r\n06-11 22:50:17.564 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: Activating PlayGamesPlatform.\r\n06-11 22:50:17.565 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform\r\n06-11 22:50:17.566 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: Activating PlayGamesPlatform.\r\n06-11 22:50:17.567 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform\r\n06-11 22:50:17.568 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: Creating platform-specific Play Games client.\r\n [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: Creating Android IPlayGamesClient Client\r\n06-11 22:50:17.578 7610-7663\/? D\/TokenFragment: Creating fragment\r\n06-11 22:50:17.579 7610-7610\/? D\/TokenFragment: onStart()\r\n06-11 22:50:17.585 7610-7610\/? D\/TokenFragment: onResume called\r\n Building client for: a98c718 (a:false e:true i:true wc: 619017498880-4eeh5dlhl8jso58368gv4tf0s2qs4s8i.apps.googleusercontent.com f: false)\r\n06-11 22:50:17.587 7610-7663\/? I\/Unity: ---- [0] -- 105\r\n06-11 22:50:17.592 7610-7610\/? W\/PopupManager: You have not specified a View to use as content view for popups. Falling back to the Activity content view. Note that this may not work as expected in multi-screen environments\r\n06-11 22:50:17.617 5637-6375\/? D\/[WeatherGearO(220318052351)]: {[EF07ED23AAA1263A1FC0BD061AAAD81CFEF15A971ABD51417EE09B7660DD4FB818A9462C7397822725FFF2738B19ADA7]}\r\n06-11 22:50:17.648 7610-7610\/? D\/TokenFragment: No connected Games API\r\n06-11 22:50:17.649 7610-7610\/? E\/TokenFragment: Setting result error code to: 13\r\n06-11 22:50:17.653 5637-5637\/? D\/[WeatherGearO(220318052351)]: {[20CE3D41AD5C8B99E86585ABAB0BF03E702BEB2FC2CA5F53D66FB562B77F4529B627A611ACF593EFCAECBBA4E800B8A9081BC429F8CCD72700680F6A1D6A48CC]}\r\n06-11 22:50:17.657 5637-5637\/? D\/[WeatherGearO(220318052351)]: {[E5B16E2CDC4F169AEF5B4319C5BDF7110156A5C36B5B4FD8C066ADFAD237FF3B8D85C1771AE8244AE78CE8BB9C6079741D01C71F84AB90238AB7DED8E9D360BC]}\r\n06-11 22:50:17.658 5637-5637\/? D\/[WeatherGearO(220318052351)]: {[E5B16E2CDC4F169AEF5B4319C5BDF711320D5E9C4351D1F5E6CB8FF1DF59CF2C64BE1F0F10EBA2467C1DD93AB2A27A40A65FAEFDFFB43F75B64AAEDA7C3A5B59]}\r\n06-11 22:50:17.659 5637-5637\/? D\/[WeatherGearO(220318052351)]: {[20CE3D41AD5C8B99E86585ABAB0BF03EE5160ED4AAE0971C0D182570D628C6CD0253855F5B1B3CDBA2912A6CEF37A6C4]}\r\n06-11 22:50:17.668 5637-5637\/? D\/[WeatherGearO(220318052351)]: {[20CE3D41AD5C8B99E86585ABAB0BF03E856D7DF2593883BBCF72D0E06237841289C8E379B2D1A1A78B856DF6D06ACDC0]}\r\n06-11 22:50:17.672 5637-5637\/? D\/[SA_SDK]SAAgent: SAAgent - onDestroy:SAWeather_Service\r\n06-11 22:50:17.673 5637-6370\/? W\/[SA_SDK]SAAgent: Performing agent cleanup\r\n06-11 22:50:17.673 5637-6370\/? I\/[SA_SDK]SASocket: Connection is already closed\r\n06-11 22:50:17.675 5637-5637\/? D\/[WeatherGearO(220318052351)]: {[EF07ED23AAA1263A1FC0BD061AAAD81CA3F446FA4E808076CF16D0F746E839D242804AFF8476C203988BABCD46197438]}\r\n06-11 22:50:17.676 5637-6370\/? I\/[SA_SDK]SAAgent: Agent ID retrieved successfully for com.samsung.accessory.saweather.service.SAWeather_Service Agent ID:37723\r\n06-11 22:50:17.676 5909-5947\/? I\/SAFrameworkConnection: Clean up fwk connection agentId:37723 com.samsung.android.gearoplugin\r\n06-11 22:50:17.680 5909-6078\/? V\/SAFrameworkConnection: Removed incremental update callback for:\/system\/weather2_0\r\n06-11 22:50:17.680 5637-6370\/? D\/[SA_SDK]SAAdapter: Agent callback removed. Current size - 10\r\n06-11 22:50:17.685 7610-7610\/? D\/TokenPendingResult: Calling onResult for callback: GooglePlayGames.Android.TokenResultCallback result: Status: Status{statusCode=ERROR, resolution=null} email: &lt;null&gt; id:&lt;null&gt; access: &lt;null&gt;\r\n06-11 22:50:17.708 5173-30288\/? I\/AuthChimeraService: Executing send connection operation\r\n06-11 22:50:17.715 5173-28166\/? W\/FirebaseAuth: [PhoneNumberAuthPostProcessor] postProcess starts\r\n [PhoneNumberAuthPostProcessor] postProcess ends\r\n06-11 22:50:17.716 7610-7858\/? D\/FirebaseAuth: Notifying id token listeners about user ( tY2DUCs391aFgwIVLufabvlvSwP2 ).\r\n06-11 22:50:17.732 7610-7610\/? D\/GamesUnitySDK: Performing Android initialization of the GPG SDK\r\n06-11 22:50:17.771 7610-7610\/? I\/Unity: Building GPG services, implicitly attempts silent auth\r\n06-11 22:50:17.773 7610-7610\/? I\/GamesNativeSDK: Using existing jar.\r\n06-11 22:50:17.776 7610-7610\/? I\/GamesNativeSDK: Writing 1941 bytes to jar file\r\n06-11 22:50:17.779 7610-7610\/? W\/zygote: Skipping duplicate class check due to unrecognized classloader\r\n06-11 22:50:17.784 7610-7610\/? I\/GamesNativeSDK: Using existing jar.\r\n Writing 1066 bytes to jar file\r\n06-11 22:50:17.787 7610-7610\/? W\/zygote: Skipping duplicate class check due to unrecognized classloader\r\n06-11 22:50:17.793 7610-7610\/? W\/PopupManager: You have not specified a View to use as content view for popups. Falling back to the Activity content view. Note that this may not work as expected in multi-screen environments\r\n06-11 22:50:17.794 7610-7897\/? I\/GamesNativeSDK: Auth operation started: SIGN IN\r\n Connecting to Google Play...\r\n06-11 22:50:17.814 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: Starting Auth Transition. Op: SIGN_IN status: 13\r\n06-11 22:50:17.815 7610-7610\/? D\/TokenFragment: Done with processRequest, result is pending.\r\n06-11 22:50:17.815 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: Invoking callbacks, AuthState changed from silentPending to Unauthenticated.\r\n06-11 22:50:17.816 7610-7610\/? D\/FirebaseApp: Notifying auth state listeners.\r\n Notified 0 auth state listeners.\r\n06-11 22:50:17.850 5173-10655\/? W\/GamesServiceBroker: Client connected with SDK 12211000, Services 12685025, and Games 59040048\r\n06-11 22:50:17.850 5173-5886\/? W\/GamesServiceBroker: Client connected with SDK 12211000, Services 12685025, and Games 59040048\r\n06-11 22:50:17.861 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:17 +09:00 DEBUG: there are pending auth callbacks - starting AuthUI\r\n06-11 22:50:17.880 7610-7663\/? I\/Unity: Token[0:8] = eyJhbGci\r\n06-11 22:50:17.909 5173-3007\/? W\/GamesServiceBroker: Client connected with SDK 13004000, Services 12685025, and Games 59040048\r\n06-11 22:50:17.974 5173-7898\/? I\/AsyncOpDispatcher: 44-AuthAccountWithNoServerAuthCallback\r\n06-11 22:50:18.085 5112-8279\/? I\/System.out: (HTTPLog)-Static: isSBSettingEnabled false\r\n06-11 22:50:18.181 3254-3254\/? I\/android.hardware.wifi@1.0-service: getLinkLayerStats\r\n06-11 22:50:18.200 3788-3811\/? D\/StorageManagerService: getExternalStorageMountMode : 2\r\n06-11 22:50:18.201 3788-3811\/? D\/StorageManagerService: getExternalStorageMountMode : 3\r\n06-11 22:50:18.208 3788-3811\/? D\/StorageManagerService: getExternalStorageMountMode : final mountMode=2, uid : 10220, packageName : com.skt.prod.phonebook\r\n06-11 22:50:18.217 3788-3811\/? I\/ApplicationPolicy: isApplicationExternalStorageWhitelisted:com.skt.prod.phonebook user:0\r\n06-11 22:50:18.217 3788-3811\/? D\/ApplicationPolicy: isApplicationExternalStorageWhitelisted: DO is not enabled on user 0. Allowed.\r\n06-11 22:50:18.217 3788-3811\/? D\/ActivityManager: package com.skt.prod.phonebook, user - 0 is SDcard whitelisted\r\n06-11 22:50:18.217 3788-3811\/? I\/ApplicationPolicy: isApplicationExternalStorageBlacklisted:com.skt.prod.phonebook user:0\r\n06-11 22:50:18.217 3788-3811\/? D\/ApplicationPolicy: isApplicationExternalStorageBlacklisted: DO is not enabled on user 0. Allowed.\r\n<em><strong>06-11 22:50:18.241 5112-8279\/? W\/Auth: [GetToken] GetToken failed with status code: NeedPermission<\/strong><\/em>\r\n06-11 22:50:18.257 3788-3811\/? W\/ActivityManager: Slow operation: 60ms so far, now at startProcess: returned from zygote!\r\n Slow operation: 60ms so far, now at startProcess: done updating battery stats\r\n06-11 22:50:18.258 3788-3811\/? W\/ActivityManager: Slow operation: 60ms so far, now at startProcess: building log message\r\n06-11 22:50:18.258 3788-3811\/? I\/ActivityManager: Start proc 7899:com.skt.prod.phonebook\/u0a220 for service com.skt.prod.phonebook\/.sync.SyncManagerService\r\n06-11 22:50:18.258 3788-3811\/? W\/ActivityManager: Slow operation: 61ms so far, now at startProcess: starting to update pids map\r\n Slow operation: 61ms so far, now at startProcess: done updating pids map\r\n Slow operation: 63ms so far, now at startProcess: done starting proc!\r\n06-11 22:50:18.260 7899-7899\/? E\/Zygote: isWhitelistProcess - Process is Whitelisted\r\n06-11 22:50:18.273 7899-7899\/? W\/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G950N_8.0.0_0005, [-1 -1 -1 -1 0 1]\r\n06-11 22:50:18.276 7899-7899\/? I\/SELinux: SELinux: seapp_context_lookup: seinfo=trustonicpartner, level=s0:c512,c768, pkgname=com.skt.prod.phonebook \r\n06-11 22:50:18.301 5173-7321\/? W\/Auth: [GoogleAuthUtil] GoogleAuthUtil\r\n06-11 22:50:18.326 5173-3007\/? W\/GamesServiceBroker: Client connected with SDK 13004000, Services 12685025, and Games 59040048\r\n06-11 22:50:18.330 7610-7610\/? I\/TokenFragment: onConnected called\r\n06-11 22:50:18.339 3788-4468\/? I\/ClientCertificateManager\u00a0Service: fixContextInfoForMP() returning Caller uid: 10220 ,Container id: 0\r\n fixContextInfoForMP() returning Caller uid: 10220 ,Container id: 0\r\n ClientCertificateManager.isPremiumContainer() : false for user : 0\r\n06-11 22:50:18.341 5173-3007\/? W\/GamesServiceBroker: Client connected with SDK 13004000, Services 12685025, and Games 59040048\r\n06-11 22:50:18.355 3788-4622\/? I\/ClientCertificateManager\u00a0Service: fixContextInfoForMP() returning Caller uid: 10220 ,Container id: 0\r\n06-11 22:50:18.356 3788-4622\/? I\/ClientCertificateManager\u00a0Service: fixContextInfoForMP() returning Caller uid: 10220 ,Container id: 0\r\n ClientCertificateManager.isPremiumContainer() : false for user : 0\r\n06-11 22:50:18.371 7899-7899\/? D\/ActivityThread: Added TimaKeyStore provider\r\n06-11 22:50:18.372 5173-7898\/? I\/AsyncOpDispatcher: 44-AuthAccountWithNoServerAuthCallback\r\n06-11 22:50:18.375 3788-4323\/? I\/ActivityManager: DSS on for com.skt.prod.phonebook and scale is 1.0\r\n06-11 22:50:18.457 3788-4323\/? W\/AppOps: Bad call: specified package com.google.android.play.games under uid 10382 but it is really 10250\r\n java.lang.RuntimeException: here\r\n at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1402)\r\n at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1106)\r\n at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)\r\n at android.os.Binder.execTransact(Binder.java:682)\r\n06-11 22:50:18.487 7899-7916\/? I\/vndksupport: sphal namespace is not configured for this process. Loading \/vendor\/lib\/egl\/libGLES_mali.so from the current namespace instead.\r\n06-11 22:50:18.525 5173-3007\/? W\/GamesServiceBroker: Client connected with SDK 13004000, Services 12685025, and Games 59040048\r\n06-11 22:50:18.528 7899-7899\/? D\/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.\r\n06-11 22:50:18.544 7899-7899\/? D\/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.\r\n06-11 22:50:18.551 7899-7916\/? D\/libEGL: loaded \/vendor\/lib\/egl\/libGLES_mali.so\r\n06-11 22:50:18.557 7899-7899\/? I\/FA: App measurement is starting up, version: 11020\r\n To enable debug logging run: adb shell setprop log.tag.FA VERBOSE\r\n06-11 22:50:18.571 7610-7610\/? V\/GamesNativeSDK: Play Games callback indicates connection.\r\n06-11 22:50:18.593 7610-7897\/? I\/GamesNativeSDK: Successfully connected to Google Play.\r\n06-11 22:50:18.598 7899-7899\/? I\/FA: To enable faster debug mode event logging run:\r\n adb shell setprop debug.firebase.analytics.app com.skt.prod.phonebook\r\n06-11 22:50:18.604 3788-4323\/? D\/SamsungAlarmManager: Cancel Alarm calling from uid:10220 pid :7899 \/ op:PendingIntent{bddad2c: PendingIntentRecord{42e53f5 com.skt.prod.phonebook broadcastIntent}}\r\n06-11 22:50:18.611 7899-7899\/? I\/FirebaseInitProvider: FirebaseApp initialization successful\r\n06-11 22:50:18.619 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Starting Auth Transition. Op: SIGN_IN status: VALID\r\n06-11 22:50:18.632 5173-10310\/? I\/System.out: (HTTPLog)-Static: isSBSettingEnabled false\r\n06-11 22:50:18.664 3788-4468\/? D\/ConnectivityService: filterNetworkStateForUid() uid: 10220 networkInfo: [type: WIFI[] - WIFI, state: CONNECTED\/CONNECTED, reason: (unspecified), extra: \"starter_5G\", failover: false, available: true, roaming: false, metered: false]\r\n06-11 22:50:18.674 3788-4468\/? W\/StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 2913012121, maxLowBytes : 524288000\r\n06-11 22:50:18.679 3788-5348\/? W\/AppOps: Bad call: specified package com.google.android.play.games under uid 10382 but it is really 10250\r\n java.lang.RuntimeException: here\r\n at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1402)\r\n at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1106)\r\n at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)\r\n at android.os.Binder.execTransact(Binder.java:682)\r\n06-11 22:50:18.680 3788-4468\/? W\/StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 2913012121, maxLowBytes : 524288000\r\n06-11 22:50:18.681 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Entering internal callback for PlayerManager#InternalFetchSelfCallback\r\n06-11 22:50:18.682 3788-4468\/? W\/AppOps: Bad call: specified package com.google.android.play.games under uid 10382 but it is really 10250\r\n java.lang.RuntimeException: here\r\n at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1402)\r\n at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1106)\r\n at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)\r\n at android.os.Binder.execTransact(Binder.java:682)\r\n06-11 22:50:18.682 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Populating User\r\n06-11 22:50:18.687 3788-4468\/? W\/StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 2913012121, maxLowBytes : 524288000\r\n06-11 22:50:18.691 3788-4468\/? W\/StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 2913012121, maxLowBytes : 524288000\r\n06-11 22:50:18.696 3788-4468\/? W\/AppOps: Bad call: specified package com.google.android.play.games under uid 10382 but it is really 10250\r\n java.lang.RuntimeException: here\r\n at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1402)\r\n at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1106)\r\n at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)\r\n at android.os.Binder.execTransact(Binder.java:682)\r\n06-11 22:50:18.713 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Found User: [Player: 'PlayerID' (id g44786123847612328794)]\r\n06-11 22:50:18.714 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Maybe finish for User\r\n06-11 22:50:18.714 3788-4468\/? W\/StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 2913012121, maxLowBytes : 524288000\r\n06-11 22:50:18.715 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Auth not finished. User=[Player: 'PlayerID' (id g44786123847612328794)] achievements=\r\n06-11 22:50:18.719 3788-5348\/? W\/AppOps: Bad call: specified package com.google.android.play.games under uid 10382 but it is really 10250\r\n java.lang.RuntimeException: here\r\n at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1402)\r\n at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1106)\r\n at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)\r\n at android.os.Binder.execTransact(Binder.java:682)\r\n06-11 22:50:18.720 3788-4468\/? W\/AppOps: Bad call: specified package com.google.android.play.games under uid 10382 but it is really 10250\r\n java.lang.RuntimeException: here\r\n at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1402)\r\n at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1106)\r\n at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)\r\n at android.os.Binder.execTransact(Binder.java:682)\r\n06-11 22:50:18.748 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Entering internal callback for AchievementManager#InternalFetchAllCallback\r\n06-11 22:50:18.749 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Populating Achievements, status = VALID\r\n06-11 22:50:18.793 7899-7899\/? W\/Notification: Use of stream types is deprecated for operations other than volume control\r\n See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case\r\n06-11 22:50:18.814 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Found 1 Achievements\r\n06-11 22:50:18.815 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Maybe finish for Achievements\r\n06-11 22:50:18.816 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Auth finished. Proceeding.\r\n06-11 22:50:18.817 7610-7663\/? I\/Unity: [Play Games Plugin DLL] 06\/11\/18 22:50:18 +09:00 DEBUG: Invoking Callbacks: System.Action`2[System.Boolean,System.String]\r\n06-11 22:50:18.820 7610-7663\/? I\/Unity: Gpgs authenticate success.<\/pre>\n<p>\uc704\uc758 \ub85c\uadf8\uc5d0\uc11c \uc544\ub798\uc758 \ud55c\uc904\uc744 \ubc1c\uacac\ud560 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p><em><strong>06-11 22:50:18.241 5112-8279\/? W\/Auth: [GetToken] GetToken failed with status code: NeedPermission<\/strong><\/em><\/p>\n<p>Permission\uc774\ub77c\ub294 \ud78c\ud2b8\ub97c \uac00\uc9c0\uace0 \ub450\uac00\uc9c0 \ud574\uacb0\ubc29\ubc95\uc744 \uac80\uc0c9\ud574 \ubcfc \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uccab\ubc88\uc9f8\ub294 AndroidManifest.xml \ud30c\uc77c\uc5d0<br \/>\n&lt;uses-permission android:name=\"android.permission.GET_ACCOUNTS\" \/&gt;<br \/>\n\uad8c\ud55c\uc744 \ucd94\uac00\ud574\uc11c \ud574\uacb0\uc774 \ub418\uc5c8\ub2e4\ub294 \ub0b4\uc6a9\uc774\uc5c8\uc2b5\ub2c8\ub2e4\ub9cc \uc774\uac78\ub85c\ub294 \ud574\uacb0\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ub450\ubc88\uc9f8\ub294 config\uc5d0\u00a0AddOauthScope\ub97c \ucd94\uac00\ud574 \ubcf4\ub77c\ub294 \ub0b4\uc6a9\uc774\uc5c8\uace0 \uc774\uac78\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<br \/>\n\uc774 \ud574\uacb0\ucc45\uc744 \ubcf4\uace0 AddOauthScope \ud568\uc218\uc758 \uc120\uc5b8\ubd80\ub97c \ubcf4\uc558\ub354\ub2c8 \uc544\ub798\uc640 \uac19\uc740 \uc8fc\uc11d\uc774 \ub2ec\ub824 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"lang:c# mark:4-7 decode:true \">\/\/\/ &lt;summary&gt;\r\n\/\/\/ Requests an Oauth scope from the user.\r\n\/\/\/ &lt;\/summary&gt;\r\n\/\/\/ &lt;remarks&gt;\r\n\/\/\/ Not setting one will default to 'games_lite' and will not show a consent\r\n\/\/\/ dialog to the user. Valid examples are 'profile' and 'email'.\r\n\/\/\/ Full list: https:\/\/developers.google.com\/identity\/protocols\/googlescopes\r\n\/\/\/ To exchange the auth code with an id_token (or user id) on your server,\r\n\/\/\/ you must add at least one scope.\r\n\/\/\/ &lt;\/remarks&gt;\r\n\/\/\/ &lt;returns&gt;The builder.&lt;\/returns&gt;\r\npublic Builder AddOauthScope(string scope)\r\n{\r\n    if (mScopes == null) mScopes = new List&lt;string&gt;();\r\n    mScopes.Add(scope);\r\n    return this;\r\n}<\/pre>\n<p>\uc544\ubb34\uac83\ub3c4 \uc124\uc815\ud558\uc9c0 \uc54a\uc744\uacbd\uc6b0 'games_lite' \ub77c\ub294 scope\uac00 \uc124\uc815\ub41c\ub2e4\uace0 \ud558\ub294\ub370... \uc8fc\uc11d\uc5d0 \ub2ec\ub824 \uc788\ub294 \ub9c1\ud06c\ub97c \ub530\ub77c\uac00\ubcf4\ub2c8 games_lite\ub77c\ub294 scope\ub294 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.<\/p>\n<p>https:\/\/developers.google.com\/identity\/protocols\/googlescopes<\/p>\n<p>\uadf8\ub798\uc11c \uc704 \ub9c1\ud06c\uc5d0 \uc788\ub294 scope\uc5d0\uc11c Google Play Game Service\uc640 \uad00\ub828\ub41c scope\ub97c \ucd94\uac00\ud558\uc5ec \ucd08\uae30\ud654 \ucf54\ub4dc\ub97c \uc544\ub798\uc640 \uac19\uc774 \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"lang:c# decode:true\">\/\/ GPG\ub97c Activate()\ud558\uba74 Social.localUser\uac00 GPG\uc758 \uacc4\uc815 \uc815\ubcf4\ub85c \uc124\uc815\ub428\r\n\/\/ \uc548\ub4dc\ub85c\uc774\ub4dc \ube4c\ub354 \ucd08\uae30\ud654\r\nPlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()\r\n    .AddOauthScope(\"profile\")\r\n    .AddOauthScope(\"email\")\r\n    .AddOauthScope(\"https:\/\/www.googleapis.com\/auth\/games\")\r\n    .AddOauthScope(\"https:\/\/www.googleapis.com\/auth\/plus.login\")\r\n    .RequestServerAuthCode(false)\r\n    .RequestIdToken()\r\n    .RequestEmail()\r\n    .Build();\r\nPlayGamesPlatform.InitializeInstance(config);\r\n\r\n\/\/ \uad6c\uae00 \ud50c\ub808\uc774 \ub85c\uadf8\ub97c \ud655\uc778\ud560\ub824\uba74 \ud65c\uc131\ud654\r\nPlayGamesPlatform.DebugLogEnabled = true;\r\n\r\n\/\/ \uad6c\uae00 \ud50c\ub808\uc774 \ud65c\uc131\ud654\r\nPlayGamesPlatform.Activate();<\/pre>\n<p>\uc774 \ucf54\ub4dc\ub97c \ud1b5\ud574\uc11c \ud574\uacb0\ud558\uae34 \ud588\ub294\ub370... \ubb38\uc81c\ub294 \uc774 \ucf54\ub4dc\ub97c \uc218\uc815\ud55c \uc5c5\ub370\uc774\ud2b8\ub97c \ub514\ubc14\uc774\uc2a4\uc5d0 \uc801\uc6a9\ud558\uace0 \uc989\uc2dc \uc218\uc815\ub418\uc9c4 \uc54a\uace0 \ub610\ub2e4\ub978 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud558\uba74\uc11c \ub85c\uadf8\uc778\uc5d0 \uc2e4\ud328\ud569\ub2c8\ub2e4.<\/p>\n<p>\uc774\uc81c\ub294 Unity Log\uc5d0\uc11c\ub3c4 \ubcfc \uc218 \uc788\ub294 ERROR_NOT_AUTHORIZED \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud558\uac8c \ub429\ub2c8\ub2e4. \uc774 \uacbd\uc6b0\uc5d0 \uce90\uc2f1\ub41c \ub85c\uadf8\uc778 \uc815\ubcf4\ub97c \uac15\uc81c\ub85c SignOut \ucc98\ub9ac\ub97c \ud574\uc900 \ud6c4 \ub2e4\uc2dc \ub85c\uadf8\uc778\uc744 \uc2dc\ub3c4\ud558\uac70\ub098 \uac8c\uc784\uc744 \uc0ad\uc81c \ud6c4 \ub2e4\uc2dc \uc124\uce58\ud558\uc5ec \uc2e4\ud589\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p>\uadf8\ub7ec\uba74 Google Play \ub85c\uadf8\uc778\uacfc \ud568\uaed8 \uad8c\ud55c\uc744 \ubb3c\uc5b4\ubcf4\ub294 \uc708\ub3c4\uc6b0\uac00 \uc5f4\ub9ac\uac8c \ub418\uace0 \ud5c8\uc6a9\uc744 \uc120\ud0dd\ud558\uba74 \ub85c\uadf8\uc778\uc5d0 \uc131\uacf5\ud558\uac8c \ub429\ub2c8\ub2e4.<\/p>\n<p>Document\ub791 \uc608\uc81c \uc880 \ud0c4\ud0c4\ud558\uac8c \uc815\ub9ac\ud574\uc8fc\uba74 \uc548\ub418\ub098...<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity\uc5d0\uc11c Google \ub85c\uadf8\uc778\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud574\uc11c\ub294 Google Play Games Service Plugin(gpgs)\uc744 \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4. \uc800\ub294 Firebase\ub97c \ud1b5\ud574\uc11c Google Play, Facebook, Guest \ub85c\uadf8\uc778\uc744 \uad6c\ud604\ud558\ub294 \uacfc\uc815\uc774\uc5c8\uace0, Firebase\uc5d0\uc11c Google Play \uc778\uc99d\uc744 \uc704\ud574\uc11c\ub294 Google Play\uc5d0\uc11c IdToken\uc744 \ubc1b\uc544\uc11c Firebase \uc778\uc99d \ubaa8\ub4c8\uc5d0 \uc804\ub2ec\ud574\uc918\uc57c \ud569\ub2c8\ub2e4. \ucc98\uc74c \ub9cc\ub09c \ubb38\uc81c\ub294 gpgs\uc5d0\uc11c \ub85c\uadf8\uc778\uc740 \uc131\uacf5\ud558\uc5ec Social.localUser.id \uc815\ubcf4\ub294 \ub4e4\uc5b4 \uc788\uc9c0\ub9cc IdToken, Email, ServerAuthCode \ub4f1\uc758 \uc815\ubcf4\ub294 \ube44\uc5b4\uc788\uc5b4\uc11c Firebase\uc5d0 \uc778\uc99d \uc815\ubcf4\ub97c &hellip; <a href=\"http:\/\/milennium9.godohosting.com\/wordpress\/?p=225\" class=\"more-link\"><span class=\"screen-reader-text\">[Unity3D] Google Play Games Plugin\uc5d0\uc11c ERROR_NOT_AUTHORIZED \uc624\ub958\ub85c \ub85c\uadf8\uc778 \uc2e4\ud328 \ub610\ub294 IdToken \ubc1b\uc544\uc624\uae30 \uc2e4\ud328<\/span> \ub354\ubcf4\uae30 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0},"categories":[3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5PypW-3D","_links":{"self":[{"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/225"}],"collection":[{"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=225"}],"version-history":[{"count":5,"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":230,"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions\/230"}],"wp:attachment":[{"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/milennium9.godohosting.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}