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 “sipfed.online.lync.com” –VerificationLevel UseSourceVerification

2. Add push.lync.com to the allowed domains list

New-CsAllowedDomain –Identity “push.lync.com”

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 internaledge.contoso.com –Domain push.lync.com –ProxyFqdn sipfed.online.lync.com

6. Test Push Notifications

Test-CsMcxPushNotification –AccessEdgeFqdn internaledge.contoso.com

Advertisements

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:
https://msexchangeanywhere.wordpress.com/2012/01/13/how-to-install-lync-2010-mobility-installation-overview/

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.<domain.com>

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

Select authentication settings

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

Finish

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)
https://msexchangeanywhere.wordpress.com/2011/12/05/lync-2010-cu4-is-out/

2. Update DNS Entries

  • Lyncdiscover.domain.com / per domain (external DNS pointing to Reverse Proxy)
  • Lyncdiscoverinternal.domain.com / 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)

  • Lyncdiscover.domain.com / per domain

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

  • Lyncdiscover.domain.com / per domain
  • Lyncdiscoverinternal.domain.com / 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 “webserver:lyncpool.domain.com” -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:
http://www.microsoft.com/download/en/details.aspx?id=28356

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 lyncdiscover.domain.com 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:

https://msexchangeanywhere.wordpress.com/2012/01/13/how-to-publish-reverse-proxy-urls-for-lync-mobility-discover-service-with-tmg/

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:

https://msexchangeanywhere.wordpress.com/2012/01/13/how-to-enable-push-notifications-for-lync-mobile-iphone-windows-phone-7-2/