I'm implementing an application on iOS
which main purpose is to handle push notifications received from the server. Server is using GCM
for messages delivery.
If I decided to use the
FCM
framework on iOS (not even decided, just haven't found GCM framework for Swift 3, nor on Cocoapods), how much compatible will it be with the existingGCM
- is it necessary to migrate it to FCM?Is it possible to receive data messages (not notifications - the work as the should) while application is terminated. While application is in the background or foreground, the delegate method is being invoked and data are handled as they should, but when it is terminated - nothing is invoked, only if user touches the notification popup, but I need to fill data from data message to the database even when app is closed.
How to determine the
topic
to which the message was sent? The reason I need this is that I have to make different actions based on to what topic/s the received message was sent to. I know that on Android, there is a key in received JSON -from
, but what about iOS?
Thank you.