Currently, we create two topics for each client, one for android and the other for iOS.

Each topic has application end-points subscribed to.

When we do a push-notification, we push the message twice, one for android topic and the other for iOS topic, of course, we change the JSON format for each topic to match platform format.

The question, is there better way? ex: to have only one topic rather two in our case? and if so, how would we format the message on the fly for each platform? ex: (interceptor) as the json structure would be different for each platform.

0 Answers