Sinch FCM based push notification

1.2k views Asked by At

While implementing app-app calling with Sinch, I need to integrate push notification using firebase cloud messaging(FCM). As there is no doc available so I followed the same process like GCM but when I called

mSinchClient.setSupportManagedPush(true);

it is throwing exception missing GCM exception

com.sinch.android.rtc.MissingGCMException: Can't enable managed push as this depends on GCM, which is not available on this device

2

There are 2 answers

3
cjensen On

We currently do not support FCM for managedpush if you cant use GCM use this to implement the push methods your self https://www.sinch.com/docs/voice/android/#pushnotificationssentviayourapplicationserver

0
Tamara Bernad On

I had the same issue. Besides adding firebase to the dependencies

compile 'com.google.firebase:firebase-messaging:11.8.0'

I had to add play-services as well:

compile 'com.google.android.gms:play-services:11.8.0'

After that the exception was not raised anymore and I could receive notifications.