In the code you provided, you never actually save the PFInstallation
object to parse.com. You should add :
[currentInstallation saveInBackground];
at the end of your code, right after you set the channels.
Side-note: you can also use the method subscribeToChannelInBackground:
from the PFPush
class in order to subscribe a device to a channel:
subscribeToChannelInBackground:
Asynchronously subscribes the device to a channel of push notifications.
+ (void)subscribeToChannelInBackground:(NSString *)channel
Parameters
channel
The channel to subscribe to. The channel name must start with a letter and contain only letters, numbers, dashes, and underscores.