Skip to content

Instantly share code, notes, and snippets.

@sessionm-docs
Created February 23, 2016 15:55
Show Gist options
  • Save sessionm-docs/b4f817f66e383699aef6 to your computer and use it in GitHub Desktop.
Save sessionm-docs/b4f817f66e383699aef6 to your computer and use it in GitHub Desktop.
MMC - Enable Push
// Ensure app Background Modes are enabled for Remote notifications and Background fetch in the Info.plist:
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
</array>
// When you want to request permission for remote notifications call:
[[SessionM sharedInstance] registerForRemoteNotifications];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment