FCM 3

[소개] FMNotification (Android Library : Push(FCM) Receiver)

FMNotification 는 ‘Push 수신 및 처리’를 쉽게 구현할 수 있도록 도와주는 라이브러리 입니다. 아래의 스크린샷과 같이 Android P에서 Heads up notification 동작하며, Firebase의 'Notification Type'의 메세지와 'Data Type'의 메세지 모두를 지원합니다. 해당 프로젝트는 ' if (!isSuccessful) { Log.w(TAG, "getInstanceId failed") } else { val msg = getString(R.string.msg_token_fmt, token) Log.d(TAG, msg) Toast.makeText(baseContext, msg, Toast.LENGTH_SHORT).show() } } } } override..

포트폴리오 2019.01.28

Android P 에서 Heads Up Notification 표시하는 방법.

헤드업 알림(Heads-up notification) 이란? 출처 : https://developer.android.com/guide/topics/ui/notifiers/notifications?hl=ko확실히, Heads-up notificatoin을 사용하면 이쁩니다. 사용자도 Push가 왔다는 것을 명시적으로 인지할 수 있죠.Android P 에서의 Heads-up Notification 출처 : https://www.androidpolice.com/2018/05/09/heads-notification-animations-android-p-dp2-pretty-snazzy/Android P 에서는 에니메이션이 좀 더 들어갔습니다.하지만, 기존 코드로는 Android P에서 Heads-up notifi..

Android P 에서는 더이상 GCM 토큰이 발급되지 않습니다.

오래된 Android App들은 아직 GCM을 사용하는 경우가 있습니다.물론, 대부분의 App들은 GCM에서 FCM으로 마이그레이션을 끝냈겠지만요. GCM은 2019년 4월 11일에 Sunset하기 때문에 아직 GCM을 사용하는 앱이라면 서둘러서 FCM으로 마이그레이션 해야 합니다.(출처 : The End of Google Cloud Messaging, and What it Means for Your Apps) 그래서 그런지 Android P에서는 GCM을 사용하는 앱인 경우 GCM토큰이 발급되지 않는 현상이 있습니다.FCM 토큰은 정상적으로 발급되는 것을 확인 했습니다. 시간이 별로 없습니다. 아직 GCM을 사용하는 프로젝트가 있다면 FCM으로 꼭 마이그레이션 하시기 바랍니다.

반응형