Badge Notifications for FM Go App SDK

Idea created by AppGuy on Jan 18, 2017
    Active
    Score13

    Provide the ability to push Badge notifications Via the FM Go App SDK.

     

    Provide a way for us to take advantage of using an onTimer Script or BackGrounding 1 script(process) to check for a new badge notification script step.

     

     

     

    Here is a sample of the swift code:

     

    class func setBadgeIndicator(badgeCount:Int)
    {
      
    let application = UIApplication.shared
      
    if #available(iOS 10.0, *) {
      
    let center = UNUserNotificationCenter.current()
      center
    .requestAuthorization(options:[.badge, .alert, .sound]) { (granted, error) in }
      
    }
      
    else{
      application
    .registerUserNotificationSettings(UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil))
      
    }
      application
    .registerForRemoteNotifications()
      application
    .applicationIconBadgeNumber = badgeCount
    }

     

     

     

    Or the other Idea would be to allow developers to add their own swift code to the project.

     

    Thanks,

    JP