Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

FirebasePushNotification

Follow below steps for the setup push notifications.

  1. Open firebase console and create new project. https://console.firebase.google.com

  2. Setup your project in Setting and upload .p12 certificate in cloud messaging sections.

  3. Add PushNotification.swift file into your project.

  4. Write below code into your appdelegate method.

      func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
     // Override point for customization after application launch.
     
     
     PushNotification.setupForPushNotiFication(application: application) { (isGranted) in
         print(isGranted)
     }
     return true
    

    }

  5. Run your project in ios Device and allow push notification service.

  6. Send Push notification from firebase console.

Stay connected with us for get custom classes for the ios Development.

Thanks

About

Push Notification with firebase

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages