ios - How to prevent notification permission when I launch first time? -


i have special button requesting permission allow notification see permission before clicking button. know how disable it?

thank you!

i've been using in appdelegate.swift

        alarmscheduler.setupnotificationsettings()     window?.tintcolor = uicolor.red      let notificationsettings = uiusernotificationsettings(types: .alert, categories: nil)     uiapplication.shared.registerusernotificationsettings(notificationsettings) 

so deleted , resolved trouble


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -