기기에 알림을 구현했습니다.Android : 기기를 다시 시작하면 알림이 작동하지 않습니다.
잘 작동합니다. 하지만 장치를 재부팅해도 전혀 작동하지 않습니다.
그래서 뭐가 잘못 되었나요? 매니 페스트에 anithing을 추가해야합니까?
알림 클래스의 브로드 캐스트를 수신하려면이 코드를 추가했습니다.
코드 :
<!-- To receive the Alarm Notification -->
<receiver android:name=".AlarmNotificationReceiver" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE"></action>
</intent-filter>
</receiver>
감사합니다.
알림은 무엇입니까? –
메시지를 표시하는 것은 알림입니다. 그리고 alarmManager를 구현하여 알림 시간을 설정했습니다. –
알림을 받기 위해 Boot Complete의 작업을 브로드 캐스트해야합니다. –