black friday sale

Flat 10% off on the purchase of any two apps or more. Use coupon code - FESTIVAL10

Grab It Now
Check Mobile App
Read now
Start a Project

Enable/Disable Push Notification From The App

Save

Hello guys, Today we learn about Enable/Disable Push Notification From The App functionality.

To get more knowledge about push notification functionality Please click Here.

In most of the apps, we give the push notification to enable/ disable the push notification feature from the device setting. but sometimes we want to give that feature inside our app setting. For this what do we do? so let’s start.

Getting Started:-

Step1:- Firstly Create an XCode project

File–> New–> Project–> iOS –> Next And Add your project name then create

Step2:- Secondly, Implement the push notification functionality for this, please click here.

step3:- After implementing the push notification, we give some notification enable disable button from where user easily turns on and off the notification working, when user clicks on the button it redirects to the iPhone device setting, to remove this functionality we need to add some cases in our code.

Here we need to call the app delegate class to operate push notification working when the user enables to disable the notification function inside the app

Now, we need to create a function in the AppDelegate class

Also, we need to call the same function in the didFinishLaunchingWithOptions method.

Conclusion:-

In, this blog we discussed the working of Enable/Disable Push Notification From The App.

I hope, this blog will help you to understand the flow of enabling/disabling functionality

Thanks for reading!!

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Very good company, we did get app extension for Magento 2 website. The support was very good they help us through the process. Webkul team is very supportive, I would recommend them.

Yasser Mohamed

Yasser Mohamed

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home