전체 글
-
안드로이드 코틀린 FCM Notification 알림 안 보내진다... notification permissionAndroid Studio 2023. 9. 27. 10:01
이전 글처럼 두 번째로 FCM notification 만드는데 모든 세팅을 해놓고 테스트를 진행하는데 아무리 봐도 문제가 없고 에러도 없는데... 알림이 울리지를 않는 것이다.. 여러 가지 검색으로 해보고 내 코드와 대조를 해보는데도 이게 왜 그런지 뭐가 문제인 건지 알도리가 없다. 그러다가 문득! 떠올랐다. 권한을 주었나?!?!??!? https://source.android.com/docs/core/display/notification-perm?hl=ko 수신 동의 알림에 대한 알림 권한 | Android 오픈소스 프로젝트 | Android Open Source Project 이 페이지는 Cloud Translation API를 통해 번역되었습니다. Switch to English 수신 동의 알림에 ..
-
안드로이드 스튜디오 Kotlin FireBase FCM 사용해 Notification 알림 보내는 방법Android Studio 2023. 9. 27. 09:30
이번 프로젝트를 진행하면서 FCM을 처음으로 사용해 보았고 첫 한 번은 어찌어찌 검색을 통해서 만들었는데 다시 만들어보려고 하니 잘 안 되는 것.... 그래서 좀 기록을 남기려고 한다. 1 일단 Firebase 설정을 먼저한다. https://firebase.google.com/?hl=ko Firebase | Google’s Mobile and Web App Development Platform Discover Firebase, Google’s mobile and web app development platform that helps developers build apps and games that users will love. firebase.google.com 홈페이지에 접속해서 로그인을 하고 시작하..
-
Dart Use Set / set 사용하기Dart 2023. 4. 16. 21:41
Use Set void main() { var set = {1, 2, 3, 4}; print(set); } It's similar to List but the difference is the items are unique. void main() { var set = {1, 2, 3, 4}; set.add(1); set.add(1); set.add(1); set.add(1); print(set); } even if i added many 1 The result is same. and The way to use Set explicitly void main() { Set set = {1, 2, 3, 4}; print(set); } write the type explicitly
-
Dart Use Map / Map 사용 방법Dart 2023. 4. 16. 21:29
Use Map void main() { var men = { 'name' : 'dok', 'age' : 30, 'kg' : 100, }; print(men); } When i use Map I can use var implicitly. even i don't make wich type is Dart can make it what type is . If i use Map explicitly void main() { Map men2 = { 'age' : 30, 'kg' : 100, }; print(men2); } Write the greater than sign behind the Map And make the first type and the last type explicitly
-
Dart The way to use Collection forDart 2023. 4. 16. 21:05
The way to use Collection for void main() { var oldNames = ['독학', '이선생']; var newNames = [ '학독독', '김선생', for (var name in oldNames) "★ $name" ]; print(newNames); } Using collection for is similar to collection if. This time put values of other List into a List void main() { var oldNames = ['독학', '이선생']; var newNames = [ '학독독', '김선생', // for (var name in oldNames) "★ $name" ]; for (var name in ol..
-
Dart String Interpolation / 변수 사용 방법Dart 2023. 4. 16. 20:36
String Interpolation void main() { var name = "dok"; var age = 28; var greeting = "Hello guys, my name is $name and i\'m ${age + 2}"; print(greeting); } When i Use variable in orher variable Use money sign in front of it. and the way to calculate in it is use square brackets behind money sign.
-
Dart the way to use List and collection ifDart 2023. 4. 16. 20:20
The way to use List and collection if It's easy to use List at Dart void main() { var num = [1, 2, 3, 4, 5] } Put verbs or numbers into square brackets It's simple but in the square brackets I must set the values same type. Absolutely there is an other way to do other type I didn't study yet. And Use collection if void main() { var ifgive = true; var num = [ 1, 2, 3, 4, 5, if (ifgive) 6 ]; } Use..