iOS Push 알림을 여러 번 테스트하는 방법

2322 단어 iOS

무슨 문제 있어요?


iOS에 밀어넣기 알림을 설치하면 확인 팝업이 표시되어 밀어넣기 알림을 활성화합니다.
이 팝업이 뜨면 최소 1일은 더 이상 표시되지 않고, 팝업 후 콜백 테스트 등을 확인하기도 어렵다.

대응


공식 문서에 대응하는 내용이 쓰여 있다.

Resetting the Push Notifications Permissions Alert on iOS


The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day.
If you want to simulate a first-time run of your app, you can leave the app uninstalled for a day. You can achieve the latter without actually waiting a day by following these steps:
  • 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.
  • https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG42
    답장 날짜를 쓸 시간은 없지만 다음 순서대로 하면 됩니다.
  • 어플리케이션 삭제
  • 디바이스 재부팅
  • 일 1일 이상 추진(통상 2일 정도 진행)
  • 디바이스 재부팅
  • 반환 날짜
  • 어플리케이션 설치
  • 이렇게 하면 여러 번 시험을 볼 수 있어요!
    설비를 다시 시작할 때 너무 번거롭다Д`)

    7/12:07 보충


    참고로 이 일대를 알리는 메시지는
    /private/var/mobile/Library/RemoteNotification/Clients.plist
    내부관리라고 합니다.
    The plist:/private/var/mobile/Library/RemoteNotification/Clients.plist
    ... contains the registered clients for push notifications. Removing your app's entry will cause the prompt to re-appear
    http://stackoverflow.com/questions/2438400/reset-push-notification-settings-for-app
    탈옥의 터미널이라면 간단하게 다시 테스트할 수 있을 거야!(확인되지 않음)
    아, 당연히 탈옥했지, 무슨 일이 있어도 w

    좋은 웹페이지 즐겨찾기