How can I register a push device using FCM?

It is possible to register a push device with Ably with Firebase Cloud Messaging (FCM) by using the following:

 

push.deviceRegistrations.save(localDevice) 

 

Where the localDevice is a DeviceDetails object, with the push.recipient part of it having transportType set to "fcm" and the registrationToken set to your registration token.