6
내 앱에서 알람을 설정하는 코드는 다음과 같습니다.앱이 알람 관리자를 통해 설정 한 알람은 앱이 제거 된 경우 어떻게됩니까?
Intent intent = new Intent("MY_ALARM_NOTIFICATION");
intent.setClass(myActivity.this, OnAlarmReceive.class);
intent.putExtra("id", id);
PendingIntent pendingIntent = PendingIntent.getBroadcast(
myActivity.this, Integer.parseInt(id),
intent, PendingIntent.FLAG_UPDATE_CURRENT);
Calendar timeCal = Calendar.getInstance();
timeCal.set(Calendar.HOUR_OF_DAY, hour);
timeCal.set(Calendar.MINUTE, minutes);
timeCal.set(Calendar.DAY_OF_MONTH, day);
timeCal.set(Calendar.MONTH, month - 1);
timeCal.set(Calendar.YEAR, year);
Date date = timeCal.getTime();
AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, timeCal.getTimeInMillis(), pendingIntent);
설정에서 응용 프로그램을 제거하면 어떻게됩니까? 알람은 남아 있습니까?
iOS가 동일한 지 알고 계십니까? – tony9099
@ tony9099 : IOS가'AlarmManager','PendingIntent' 등을 가지고 있다는 것을 알지 못합니다. 당신은'Android' 대신에'ios'로 태그가 붙은 별도의 StackOverflow 질문을하는 것이 더 좋을 것입니다, iOS- 구체적인 용어. – CommonsWare
@CommonsWare "앱 업데이트"의 경우 유사합니까? 경보 관리자에게 보류중인 의도가 제거 되었습니까? – Tejas