개발할 때 Push Notification 허용할지 Alert를 다시 나오게 하는 해야 할 때가 있죠.
한번 허용이나 거절하면 다시 안물어 봅니다.
지워도 안물어 보는데 지운다음 다시 설치할 때 물어보게 하려면 아래와 같이 하면 됩니다.
아래 4단계를 하고 나서 다시 앱 설치하고 registerForPushNotifications 하면 시스템 alert가 나옵니다. (iOS7에서도 동작함)
혹시 더 간편한 방법 아시는 분 있다면 알려주세요.
출처 : http://stackoverflow.com/questions/2438400/reset-push-notification-settings-for-app
- 앱삭제(Delete your app from the device.)
- 디바이스 완전 종료 후 다시 시작 (Turn the device off completely and turn it back on.)
- 설정앱 실행후 일반 > 날짜와 시간 선택후 시간을 하루이상 다음날로 변경 (Go to Settings > General > Date & Time and set the date ahead a day or more.)
- 디바이스 완전 종ㅛ 후 다시 시작 (Turn the device off completely again and turn it back on.)