iOS within the app gets to the settings whether the current app can accept push

Source: Internet
Author: User

//ios7 system

[[uiapplication sharedapplication] Enabledremotenotificationtypes] = = 0//cannot receive push, not 0 can receive push, is an enumeration type


//ios8 above system

[[uiapplication sharedapplication] Currentusernotificationsettings]. Types == 0

Cannot receive push, not 0 can receive push, is an enumeration type


Note that when you set the push to the phone settings screen, you can send a notification in the appdelegate to the foreground agent method to make the corresponding interface changes.


iOS within the app gets to the settings whether the current app can accept push

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.