'2022/03'에 해당되는 글 2건

  1. 2022.03.29 애플 계정, 인증서 등 만료 시
  2. 2022.03.09 Android Badge count
iOS2022. 3. 29. 10:37

스토어 계정 만료 시
- 앱다운로드 불가
- 새로운 앱과 업데이트 게시 불가
- 사용중이던 앱의 사용은 문제 없음
스토어계정 멤버쉽 갱싱 시
- 무료앱은 24시간내에 스토어에 다시 게시 되어 검색이 가능해짐
- 유료앱은 AppStoreConnect에서 "유료 응용프로그램 계약서"를 작성하면 사용가능
- 재배포 할필요 없음.

엔터프라이즈 계정 만료시
- 앱다운로드 불가
- 이미 설치된 앱도 사용불가

엔터프라이즈 인증서 만료 시 
- OCSP Server를 통해 인증을 진행하는데 캐시기간(일주일정도)동안은 
사용이 가능할 수 있으나 이 기간이 지나면 앱 사용이 불가해짐.
- 인증서는 3년간 유효 하나 "프로비저닝 프로파일"이 1년주기로 만료되기 때문에 매년 배포해야 함
- 인증서로 프로파일을 만들고 앱에 포함 때문에 프로파일이 만료되기 전에 만료되지 않은 인증서로 
프로파일을 갱신하여 배포해야 함.

Posted by 삼스
Android2022. 3. 9. 19:03

 

안드로이드 오레오(O)부터 뱃지카운트 표시방법을 정리 해 보겠다.

 

뱃지를 표시할 채널을 추가해야 한다.

 

String CHANNEL_ID = "badge_channel";

@TargetApi(Build.VERSION_CODES.O)
void createNotificationChannel() {
    NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    NotificationChannel notificationChannel = new NotificationChannel(CHANNEL_ID, "notificationName", NotificationManager.IMPORTANCE_DEFAULT);
    nm.createNotificationChannel(notificationChannel);
}

 

임의 뱃지카운트를 아이콘에 추가하려면 

 

NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, CHANNEL_ID)
        .setContentTitle("New Messages")
        .setContentText("You've received 3 new messages.")
        .setSmallIcon(android.R.drawable.ic_notification_clear_all)
        .setNumber(10);

NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(1001, notificationBuilder.build());

 

뱆지카운트를 초기화 하려면

 

NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancelAll();

 

오레오 이전버전은 오픈소스 ShortcutBadger의 사용을 권장한다.

 

implementation "me.leolin:ShortcutBadger:1.1.22@aar"

 

Posted by 삼스