My code:

In didFinishLaunchingWithOptions:

```
//Parse Remote Push Notification setup
let userNotificationTypes = (UIUserNotificationType.Alert |
    UIUserNotificationType.Badge |
    UIUserNotificationType.Sound);

let settings = UIUserNotificationSettings(forTypes: userNotificationTypes, categories: nil)
application.registerUserNotificationSettings(settings)
application.registerForRemoteNotifications()

```

The function setting up the initial channel:

```
//Parse push remote necessary functions 
func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
let installation = PFInstallation.currentInstallation()
installation.setDeviceTokenFromData(deviceToken)
installation.addUniqueObject("riders" forKey: "channels")
installation.save()
}

```

I get an error message on this line:

```
installation.addUniqueObject("riders" forKey: "channels")

```

Error: expected separator

I saw another stack question that said I should check for nil first :

[Unable to save channels to PFInstallation (iOS)](https://stackoverflow.com/questions/24672290/unable-to-save-channels-to-pfinstallation-ios)

But:

(1) the answer is in objective-C and I do not know how to translate this into Swift:

```
if (currentInstallation.channels == nil)
{
    currentInstallation.channels = [[NSArray alloc] init];
}

```

(2) I'm wondering if this is the only thing I need to do or if this is the best solution for this problem? Apparently it is a known Parse SDK bug.