유니티 엔진 (Unity Engine)
[Unity Asset] 간단한 안드로이드 푸쉬 알림 Simple Android Notifications Free
원소랑
2021. 11. 30. 01:00
.

짧은 코드로 간단하게 유니티 안드로이드 앱에서 푸쉬 메시지를 구현할 수 있게 해주는 에셋입니다.
좀비버스 개발할 때 활용했던 에셋인데, 사용법이 간단하고 쉽습니다.
무료 에셋이라 부담없이 추가할 수 있고, 심플한 푸쉬가 필요하다면 갖다 쓰기 좋습니다.
https://assetstore.unity.com/packages/tools/integration/simple-android-notifications-free-68626
Simple Android Notifications Free | 기능 통합 | Unity Asset Store
Use the Simple Android Notifications Free from Hippo on your next project. Find this integration tool & more on the Unity Asset Store.
assetstore.unity.com
플러그인을 추가하고 아래처럼 활용하면 됩니다.
using Assets.SimpleAndroidNotifications;
// 등록된 알림 모두 제거
NotificationManager.CancelAll();
string sTitle = "타이틀 메시지";
string sContent = "내용";
// 8시간 이후로 시간 설정
double HOUR_8 = 8;
DateTime timeToNotify = DateTime.Now.AddHours(HOUR_8);
TimeSpan time = timeToNotify - DateTime.Now;
NotificationManager.SendWithAppIcon(time, sTitle, sContent, Color.blue, NotificationIcon.Bell);
https://blog.naver.com/sorang226/222385430092
[좀비버스 : 머지 건즈] 출시!! ON 구글플레이
신작을 출시했습니다! 저는 프로그래밍 작업을 전담했습니다. 아래에서 다운로드 받아주세요. 제발! 별점도...
blog.naver.com
.
728x90
반응형