Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Moving iOS Notification Permissions from App Start

Discussion in 'iOS and tvOS' started by gabipopescu, Jul 14, 2017.

  1. gabipopescu

    gabipopescu

    Joined:
    Apr 29, 2017
    Posts:
    4
    Hi,

    After implementing notifications for my iOS project my app now asks for notification permission when after it is installed.

    I'm referring to this dialog > http://developer.boxcar.io/images/posts/2014-10-20-user_notif_prompt.png

    Two quick questions:
    1) Is there any way to make it stop asking for the permissions on App Start?
    2) Can I then trigger this dialog later on when I consider appropriate?

    Thanks
     
    r_at_pg likes this.
  2. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    I trigger it later when it's appropriate. I do this by calling NotificationServices.RegisterForNotifications at that time.
     
  3. gabipopescu

    gabipopescu

    Joined:
    Apr 29, 2017
    Posts:
    4
    Thanks Andy
     
  4. sameel

    sameel

    Joined:
    Dec 4, 2015
    Posts:
    16
    Hi gabipopescu, were you able to disable it at start ?
     
  5. MegaMileyStudios

    MegaMileyStudios

    Joined:
    Aug 19, 2017
    Posts:
    72
    I know this is quite late but you can go to Edit -> Project Settings -> Mobile Notification Settings and turn it off there. More info can be found here