Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can change the registration to not include sound.</p> <p>When you want to sound the notifications, call:</p> <pre><code>[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; </code></pre> <p>When you want to mute the notifications:</p> <pre><code>[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert)]; </code></pre> <p>This will allow only the alert and badge to be displayed. The sound won't be played.</p> <p>EDIT:</p> <p>I believe the following <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/IPhoneOSClientImp.html#//apple_ref/doc/uid/TP40008194-CH103-SW1" rel="nofollow">quote</a> implies that the notification won't be filtered if the payload contains a type that is not enabled. The device simply won't display/sound the type that is not enabled.</p> <blockquote> <p>The system does not badge icons, display alert messages, or play alert sounds if any of these notifications types are not enabled for your app, even if they are specified in the notification payload.</p> </blockquote> <p>You should also note that whatever types of notifications your app chooses to enable/disable, the users can override that decision manually:</p> <blockquote> <p>Users can modify the enabled notification types at any point, using Settings in iOS or System Preferences in OS X.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload