Моя проблема в том, что я хочу показать экран загрузки для первоначальной подсказки уведомления о выпуске "Приложение хочет отправить вам push-уведомления".
Итак, если пользователь нажимает yes
, я могу продолжить и запустить приложение в методах делегата, который вызывается:
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
[self hideLoadingScreen];
}
- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
{
[self hideLoadingScreen];
}
Однако, если пользователь нажимает no
, ни один из этих методов не вызван, что имеет смысл. Мой вопрос в том, есть ли другой метод делегата, который увольняется, если он откажется?
Моя проблема в том, что если выбрано no
, экраны загрузки никогда не исчезают. Поэтому мне как-то нужно знать, когда пользователь выполнил выбор.