How to Enable Push Notifications for Lync Mobile – (iPhone & Windows Phone 7)

Push notifications, in the form of badges, icons, or alerts, can be sent to a mobile device even when the mobile application is inactive. Push notifications notify a user of events such as a new or missed IM invitation, missed calls, and voice mail. The Microsoft Lync Server 2010 Mobility Service sends the notifications to the cloud-based Microsoft Lync Server 2010 Push Notification Service, which then sends the notifications to the Apple Push Notification Service (APNS) or the Microsoft Push Notification Service (MPNS).

Push Notification requires a Lync or OCS EDGE Server and Federation with Lync Online because Push Notification works via Lync Online Federation.

1. First step is to create new hosting provider federation with Lync Online.

New-CsHostingProvider –Identity “LyncOnline” –Enabled $True –ProxyFqdn “” –VerificationLevel UseSourceVerification

2. Add to the allowed domains list

New-CsAllowedDomain –Identity “”

3. Enable Push Notifications (iPhone & WP7)

Set-CsPushNotificationConfiguration –EnableApplePushNotificationService $True –EnableMicrosoftPushNotificationService $True

4. Enable Federation if you haven’t already done that in your environment

Set-CsAccessEdgeConfiguration -AllowFederatedUsers $True

5. Test Lync Online Federation

Test-CsFederatedPartner –TargetFqdn –Domain –ProxyFqdn

6. Test Push Notifications

Test-CsMcxPushNotification –AccessEdgeFqdn


How to Publish Reverse Proxy URLs for Lync Mobility Discover Service with TMG

Create a new rule for the Lync auto discover service. The full functionality uses just the regular External Webservices URLs.

For more info on the previous steps go to this article:

Create a new Web Publishing Rule

This is obviously an allow rule

Depending how you load balance or whether you have standard/enterprise edition this might be different on your end.
ISA/TMG supports cookie based load balancing (requirement for external web services URLs) if required in your deployment

You have to select SSL to the server/loadbalancer

Enter the name of the webservices loadbalancer or pool

You have to select to forward the original host header

The public name is lyncdiscover.<>

Select the correct listener (preferably both port 80 & 443)

Select authentication settings

Remove All Authenticated Users and replace this with All Users (No Authentication)


Now you have to change the following tab on the rule

You have to include both HTTP and HTTPS and forward to the correct ports

HTTP => 8080

HTTPS => 4443

Change the authentication option for HTTP on the Listener.
(you might need a new listener for security reasons so that the listener never sends authentication)

Publish your rules

How to install Lync 2010 Mobility – Installation overview

1. Important CU4!
Update your Lync Server to Cumulative Update 4 First (Prerequisite)

2. Update DNS Entries

  • / per domain (external DNS pointing to Reverse Proxy)
  • / per domain (internal DNS)

3. Update Certificate SANs required for Reverse Proxy

Automatic Configuration without HTTPS

  • No certificate change required (only use if you cannot update your certificates on the reverse proxy)

Automatic Configuration with HTTPS (Preferred)

  • / per domain

4. Update Certificate SANs required on Directors & Front-Ends

  • / per domain
  • / per domain

5. Enable Mobility Ports on Pool

You first have to enable the Mobility Ports on your pool in order to get the Mobility bits deployed.

Set-CsWebServer -Identity “” -McxSipPrimaryListeningPort 5086 -McxSipExternalListeningPort 5087

6. Preparation for Installing Mobility Service
First you need to Install Dynamic IIS Content Compression before updating your Lync Deployment

For Windows Server 2008 R2, at the command line, type:

Import-Module ServerManager
Add-WindowsFeature Web-Server, Web-Dyn-Compression

Download the Mobility Bits:

DO NOT RUN the McxStandalone.msi FILE

Instead you have to copy McxStandalone.msi to the Deployment Cache for Lync:
C:ProgramDataMicrosoftLync ServerDeploymentcache4.0.7577.0setup

7. Installing the Lync Mobility Bits

Rerun Lync Deployment Wizard
Start -> Microsoft Lync Server 2010 -> Lync Server Deployment Wizard

Then Click “Install or Update Lync Server System”

Then Rerun Step 2 : “Setup or Remove Lync Server Components”

8. Publish Lync Mobility via Reverse Proxy

Then Publish the on your Reverse Proxy server in order for your client to get the XML file with the Web Services URLs and then the Lync Mobile Client will use the Lync External Web Services URL to connect to the Lync Mobility Service.
More info on publishing via Microsoft TMG in this post:

9. Enable Lync Mobility Push Notifications

For Lync Mobile on Windows Phone 7 and iPhone push notifications are required when the Lync Mobile application is in the background in order to have full functionality.
How to Enable Lync Mobile Push Notifications: