본문 바로가기
728x90

개발456

FCM 번역 FCM 번역이 굉장히 어렵다고 생각했는데 의외로 쉬웠다. 중요한 건 client에 다가 미리 languageCode를 넣어줘야한다는 것! 나는 flutter에서 GetX를 쓰고 있기 때문에 Get.locale?.languageCode 이거로 굉장히 쉽게 가져올 수 있었다! FCM 자체는 몇 개 바꿀 것이 없다~ title이랑 body만 바꿔주면 됨! ㅎㅎ 'notification': { 'title': title, 'body': contents, // icon: followerDoc['userimg']??null }, var title = ''; var contents =''; switch(after['language_code']??'ko'){ case 'ko' : title = '새로운 팔로워가 생겼습.. 2023. 1. 13.
firebase dynamic link full path 구하기, Uri 를 가져와서 uri.path 를 실행해보면 전체 url 주소가 아님을 알 수 있다. full path를 구하려면 uri.toString으로 가져올 수 있다. https://stackoverflow.com/questions/64781335/getting-the-url-from-firebasestorage-uri-in-flutter Getting the URL from FirebaseStorage URI in Flutter Sorry for the noob question. But how do I get the Url String from a Uri ? In my understanding the Url is a subset of Uri but I couldn't find any method that .. 2023. 1. 12.
시간 날 때 postgreSql firebase 연동해보기 https://cloud.google.com/sql/docs/postgres/connect-instance-cloud-functions#node.js 빠른 시작: Cloud Functions에서 PostgreSQL용 Cloud SQL에 연결 | Google Cloud Google Cloud 콘솔을 사용하여 PostgreSQL 인스턴스에 연결된 Cloud Functions에 샘플 앱을 배포하는 방법을 알아봅니다. cloud.google.com algolia 2023. 1. 10.
class initializer 각각의 차이점 https://stackoverflow.com/questions/64546212/is-there-a-difference-in-how-member-variables-are-initialized-in-dart/64548861#64548861 Is there a difference in how member variables are initialized in Dart? In Dart, is there a difference in assigning values right away vs in constructor like in Java? class Example { int x = 3; } vs class Example { int x; Example() { x = 3; } } ... stackoverflow.com 2023. 1. 8.
728x90