.

짧은 코드로 간단하게 유니티 안드로이드 앱에서 푸쉬 메시지를 구현할 수 있게 해주는 에셋입니다.
좀비버스 개발할 때 활용했던 에셋인데, 사용법이 간단하고 쉽습니다.
무료 에셋이라 부담없이 추가할 수 있고, 심플한 푸쉬가 필요하다면 갖다 쓰기 좋습니다.
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
반응형
'유니티 엔진 (Unity Engine)' 카테고리의 다른 글
유니티 허브(Unity Hub) 3.0.0 정식 버전 둘러봤습니다 (0) | 2022.01.24 |
---|---|
[C#] Null 조건부 연산자 ?. (null conditional operators) (0) | 2022.01.05 |
유니티 엔진 2021.1 버전 매뉴얼에 새로 추가된 것 (게임 개발 퀵스타트 가이드) (0) | 2021.12.14 |
[Unity] Google AdMob 모바일 광고 SDK for Unity (0) | 2021.11.29 |
[Unity] 빌드에러 AndroidManifest.xml:41: AAPT: error: unexpected element <queries> found in <manifest>. (0) | 2021.05.18 |
[Unity] 아틀라스(Atlase)로 묶은 스프라이트(Sprite) 문제들 (0) | 2021.04.16 |
[Unity] Canvas Order 설정으로 팝업창 구현 (0) | 2021.04.06 |