블로그 이미지
Every unexpected event is a path to learning for you. blueasa

카테고리

분류 전체보기 (2809)
Unity3D (865)
Programming (479)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (234)
협업 (61)
3DS Max (3)
Game (12)
Utility (140)
Etc (98)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (55)
Android (16)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday

Firebase(or Google Analytics)에서 성별/연령이 나오다가 어느 시점에 안나오도록(수집 안되도록) 기본설정을 바꾼 것 같다.

 

예전에 셋팅을 해서 켰었는데 포스팅을 안하고 지나가서 가물가물 했는데 새로운 프로젝트 셋팅하면서 찾아서 활성화 시켜본다.

(이걸로 기억하는데 아닐수도 있음..;;)

 

 

Google Analytics - 관리(좌측하단) - 속성 - 데이터 설정 - 데이터 수집

 

설정할 곳은 Firebase가 아닌 Google Analytics쪽이다.

 

Google Analytics - 관리(좌측하단) - 속성 - 데이터 설정 - 데이터 수집 으로 가서 

Google 신호 데이터 수집, 사용자 데이터 수집 확인을 활성화 한다.

 

기본 설정이 비활성 상태기 때문에 활성화한 이후부터 데이터가 수집 되는 것 같다.

필요하다 생각되면 프로젝트 오픈전에 미리 활성화 해두자.

반응형
Posted by blueasa
, |

techyworm10 commented 15 days ago

@chkuang-g I created fixed editor dll files (until it will be officially fixed):
https://github.com/techyworm10/firebase-unity-sdk-editor-python-fix

 

techyworm10 commented 3 days ago

@daltonbr Did you try to clear ./Library/PackageCache folder?

 

 

[출처] https://github.com/firebase/quickstart-unity/issues/1232

 

[Bug] Python2 is removed on macOS 12.3 !! Please update the Editor script · Issue #1232 · firebase/quickstart-unity

[REQUIRED] Please fill in the following fields: Unity editor version: 2020.3, 2021,2 Firebase Unity SDK version: 7.0 - 8.8 Source you installed the SDK: unitypackage (.unitypackage or Unity Package...

github.com

 

반응형
Posted by blueasa
, |

[링크] https://spiralmoon.tistory.com/entry/Flutter-Firebase%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%98%EC%97%AC-Sign-In-with-Apple-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0

 

[Flutter] Firebase를 이용하여 Sign In with Apple 사용하기

Firebase를 이용하여 Sign In with Apple 사용하기 파이어베이스에서 애플 로그인을 사용해보자. 알림 : 2020.04.08 안드로이드 환경에서 애플 로그인을 실행하는 플러그인을 개발하여 내용 추가함 알림 :

spiralmoon.tistory.com

 

반응형
Posted by blueasa
, |

[상황]

Firebase 8.8.0-RemoteConfig 추가하고 연동하면서 에러 발생

 

[에러 메시지]

오류 CS0433 'Task' 형식이 'Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' 및 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'에 모두 있습니다.

 

[해결방법]

/Parse/Plugins 아래에서 안쓰는 버전의 Unity.Compat, Unity.Tasks 제거

(.NET 4.x 버전을 쓰고 있어서 .NET 3.5 버전 Unity.Compat, Unity.Tasks 제거함)

 

 

[참조] https://drehzr.tistory.com/1080

 

문제해결)error CS0012: The type `System.Threading.Tasks.Task' is defined in an assembly that is not referenced. Consider add

error CS0012: The type `System.Threading.Tasks.Task' is defined in an assembly that is not referenced. Consider adding a reference to assembly 그전의 Firebase 패키지를 처리하는 도..

drehzr.tistory.com

 

반응형
Posted by blueasa
, |

[링크] https://ddusi-dod.tistory.com/20

 

[Android] Firebase setCurrentScreen 지원중단

앞선 포스팅에 이어, Firebase SDK가 업데이트되면서 수동화면추적을 위한 setCurrentScreen도 곧 지원중단 되므로, 함수를 변경해주도록 합니다. 수동화면추적이란? 자동 추적 사용 설정 여부와 관계없

ddusi-dod.tistory.com

 

반응형
Posted by blueasa
, |

[결론]

GoogleMobileAds iOS SDK 7.68 이상은 Firebase 7.x 이상에서 지원합니다.

Firebase 업데이트 하세요


Unity: 2019.4.8f1

AdMob v5.4.0

Firebase v6.16.1 (Messaging & Analytics)

Target minimum iOS Version 12.0

Problem

I can't build the project. XCode error:

../Libraries/Plugins/iOS/GADUAdLoader.h:5:9: 'GoogleMobileAds/GoogleMobileAds.h' file not found

When I trying to update pods terminal throw the next error:

[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
  In Podfile:
    Firebase/Analytics (= 6.32.2) was resolved to 6.32.2, which depends on
      Firebase/Core (= 6.32.2) was resolved to 6.32.2, which depends on
        FirebaseAnalytics (= 6.8.2) was resolved to 6.8.2, which depends on
          GoogleAppMeasurement (= 6.8.2)

    Google-Mobile-Ads-SDK (~> 7.68) was resolved to 7.68.0, which depends on
      GoogleAppMeasurement (~> 7.0)

Attempts

  1. Add 'pod 'GoogleAppMeasurement', '7.0'' to Podfile.

Result

CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
  In Podfile:
    Firebase/Analytics (= 6.32.2) was resolved to 6.32.2, which depends on
      Firebase/Core (= 6.32.2) was resolved to 6.32.2, which depends on
        FirebaseAnalytics (= 6.8.2) was resolved to 6.8.2, which depends on
          GoogleAppMeasurement (= 6.8.2)

    Google-Mobile-Ads-SDK (~> 7.68) was resolved to 7.68.0, which depends on
      GoogleAppMeasurement (~> 7.0)

    GoogleAppMeasurement (= 7.0)
  1. Uninstall and install cocoapods

Result

Same error

Project Podfile

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
platform :ios, '12.0'

target 'UnityFramework' do
  pod 'Firebase/Analytics', '6.32.2'
  pod 'Firebase/Core', '6.32.2'
  pod 'Firebase/Messaging', '6.32.2'
  pod 'Google-Mobile-Ads-SDK', '~> 7.68'
end

 

How can I resolve this problem?

 

 

[Answer]

Google-Mobile-Ads-SDK version 7.68 is only compatible with Firebase 7.x. If you want to use Firebase 6.x, you need to use 7.67 or earlier.

 

 

[출처] stackoverflow.com/questions/64850730/unity-firebase-admob-conflict-googleappmeasurement

 

Unity Firebase + AdMob conflict (GoogleAppMeasurement)

Unity: 2019.4.8f1 AdMob v5.4.0 Firebase v6.16.1 (Messaging & Analytics) Target minimum iOS Version 12.0 Problem I can't build the project. XCode error: ../Libraries/Plugins/iOS/GADUAdLoader.h:5...

stackoverflow.com

 

반응형
Posted by blueasa
, |

[링크] https://developer88.tistory.com/161

 

Firebase의 CrashLytics를 Slack과 연동해서 알림받기

Crash가 발생할 때 가장 중요한 것은 빠르게 알림을 받는 것인데요. 이메일을 통해서도 알람을 받지만, Slack과 같은 메신저를 통해서 하나의 채널에서만 모아서 받는 다면, 관리하기도 더욱 좋아질텐데요. 오늘은..

developer88.tistory.com

 

반응형
Posted by blueasa
, |

https://dl.google.com/firebase/sdk/unity/firebase_unity_sdk_${version}.zip

 

 

[출처]

https://stackoverflow.com/questions/49921164/old-versions-of-firebase-for-unity-firebase-sdk-4-5-0

 

Old versions of Firebase for Unity (Firebase SDK 4.5.0)

In my Unity project, I am using libraries that depend on Play Services 11.8.0 and they crash with 12.0.1. The latest Firebase 4.5.1 requires Play Services 12.0.1. And for some reason I can't find...

stackoverflow.com

 

반응형
Posted by blueasa
, |

OS : Windows7 64bit

Unity : 2018.4.13f1

Firebase : 6.9.0


Generation of the Firebase Android resource file google-services.xml from Assets/Firebase/google-services.json failed.
If you have not included a valid Firebase Android resources in your app it will fail to initialize.
"C:\Project\git\ProjectName\Assets\Firebase\Editor\generate_xml_from_google_services_json.exe" -i "Assets/Firebase/google-services.json" -l

Traceback (most recent call last):
  File "", line 446, in 
  File "", line 289, in main
  File "", line 228, in argv_as_unicode_win32
AttributeError: 'module' object has no attribute 'wintypes'
generate_xml_from_google_services_json returned -1


Firebase 6.9.0을 유니티에 Import하고 위와 같은 에러를 보게 됐다.

결론적으로 wintypes attribute가 없다는 말인데 저게 뭔지 몰라서 한참 찾아 헤메다가

아래 링크에서 답을 찾았다.

 

[해결방법] 원본 (https://github.com/firebase/quickstart-unity/issues/540)

[해결방법] Detail (https://github.com/firebase/quickstart-unity/issues/540)

 

결론적으로 Firebase 6.9.0이 Windows7을 제대로 지원하지 않는 것 같다.

그래서 generate_xml_from_google_services_json.exe 파일을 다시 컴파일하는 작업을 위해서 설명하고 있다.

Python 2.7이 필요한데, Python 2.7.9 이상을 설치해야 pip가 Python에 기본적으로 들어 있다.

나는 아래 링크의 2.7.17을 깔았다.

 

[Python 2.7.17 다운로드] https://www.python.org/downloads/release/python-2717/

 

해결방법 Detail 설명대로 다하고나니 이제 에러가 뜨지 않는다.

 

 

P.s. Windows7 지원 종료가 되면서 여기저기 다른 곳에서도 지원을 종료하면서 개발에 피해가 오고 있는 걸 체감하고 있다.

    현재 피해 당하고 있는 건 SourceTree와 Firebase..-_-

 

 
반응형
Posted by blueasa
, |

Firebase를 앱에 추가 및 Firebase Console에서 설정을 다 하고나서


Android는 FA에서 제대로 체크가 되고 있는데

iOS는 FA에 뜨질 않아서 삽질 하던 중 알게 된 내용 정리해 놓음.


[참조1] https://firebase.google.com/docs/analytics/ios/start?hl=ko

FA에서는 위 참조1 링크의 설명과 같이 iOS의 XCode에서 작업하는 내용을 설명하고 있다.


설명에는 AppDelegate 파일이라고 돼있지만,

유니티에서 Export 된 XCode 프로젝트는 파일명이 약간 달라서 UnityAppController.mm 파일에서 application:(UIApplication*) didFinishLaunchingWithOptions 를 찾을 수 있다.


내 경우는 OBJECTIVE-C 여서 아래와 같은 소스를 UnityAppController.mm에 추가해서 빌드하니 FA에 잘 뜨는 걸 확인 했다.


@import Firebase;
// Use Firebase library to configure APIs
[FIRApp configure];



근데 유니티로 빌드하는데 네이티브인 XCode에서 항상 소스를 수정해줘야 된다는 건 귀찮기 때문에 유니티에서 그냥 셋팅하는 방법이 없나 하고 삽질하다가 찾아낸 방법이 아래와 같다.



[참조2] https://github.com/firebase/quickstart-unity/issues/91

참조2 링크 내용을 보면 FirebaseAnalytics.SetAnalyticsCollectionEnabled(true); 부분이 있다.

XCode에서 셋팅을 하지 않고, 유니티 실행 시 Firebase Analytics를 켤 수 있는 것 같다.


Firebase.Analytics.FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);


namespace를 포함해서 위와 같이 앱 실행 시작 부분에서 실행하도록 해주고나서 iOS 앱에서도 FA 체크가 잘되는 걸 확인 완료.



반응형
Posted by blueasa
, |