2012-03-06 56 views
1

可能重複:
How to clear preference iOS push notifications for my application?如何強制iOS推送通知對話框出現(用於測試)?

如何強制,說iOS的警報視圖 「[AppName的]想向您發送推送通知?」它從未在第一次後顯示。

我想要做這個測試,我們在應用程序中發現了一個問題,警報視圖顯示並導致視圖控制器流中出現問題。

+0

這是一個類似問題的重複: [http://stackoverflow.com/questions/9959629/how-to-clear-preference-ios-push-notifications-for-my-application/10208336 #comment13113717_10208336] [1] [1]:http://stackoverflow.com/questions/9959629/how-to-clear-preference-ios-push-notifications-for-my-application/10208336#評論13113717_10208336 – Amiramix 2012-04-18 14:14:54

+1

查看[我的回覆](http://stackoverflow.com/questions/6780795/reset-push-notification-settings-for-alert/10207040#10207040)到一個類似的問題和更多關於一般問題在[另一響應(HTTP://堆棧overflow.com/questions/10191006/objective-c-detect-when-user-change-the-apps-notifications-settings)。簡而言之,蘋果在[技術說明TN2265](http://developer.apple.com/library/ios/#technotes/tn2265/_index.html)中概述了一個程序,但它看起來並不總是有效。 – Amiramix 2012-04-18 11:23:17

回答

-3

您必須刪除應用程序並重新安裝。

+1

不起作用,我仍然沒有第二次獲得uialertview – jjxtra 2012-04-05 20:32:50

+0

如果沒有,那麼你將不得不改變你的應用程序的BundleIDs。 – ninjaneer 2012-04-06 00:22:25

+0

我會嘗試包ID – jjxtra 2012-04-06 02:36:46