简体   繁体   中英

How to get access for Push Notification, Contacts and Photos in a single alert in ios Swift?

I am building an app and in that am getting access for sending push notification, contacts and photos at three different time. But I don't want to trouble the user by asking it three different times.

How can I show a single alert and get access for all three with single tap?

Please help.

Unfortunately this is not possible , But the most close answer for your question is to present one elegant view that tells the user the benefits of giving permissions then after he clicks OK , show the alerts one after another. Then thank him for his favor :)

Take a look at this great article .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM