ConnectyCube / android-messenger-app

Chat and voice / video calling app using ConnectyCube
https://connectycube.com
Apache License 2.0
51 stars 23 forks source link

Receiving call from iOS when Android is in background, doesn't work. #51

Closed mwaked closed 4 years ago

mwaked commented 4 years ago

I made a call from iOS and Android app is in background, ReceiveNewSession doesn't work.. it works when android calls android.

Here's the code:

class CallService : IntentService("CallService") {

    override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
        Logger.d(CALL_TAG, "CallService is started")

        isRunning = true

        getBundleData(intent)

        startForeground(NOTIFICATION_REQUEST_CODE, if (isIncomingCall)
            incomingCallNotification(appointmentData, isIncomingCall)
        else callNotification(appointmentData, isIncomingCall))

        initConnectyCube()

        return Service.START_NOT_STICKY
    }
}
TatankaConCube commented 4 years ago

we didn't test our new messenger-app with iOS samples. For your case try check next

mwaked commented 4 years ago

@TatankaConCube I tried all of these and it's work fine between android devices but not work between Android and Ios, pleas can you test android messenger-app with Ios and try to make call from Ios to android when android in background to check this issue with ConnectyCube Ios team.

Thanks

mwaked commented 4 years ago

@TatankaConCube I tried all of these and it's work fine between android devices but not work between Android and Ios, pleas can you test android messenger-app with Ios and try to make call from Ios to android when android in background to check this issue with ConnectyCube Ios team.

Thanks

TatankaConCube commented 4 years ago

I can help only with android side, sorry. Did you receive push notification on android side? Calls between iOS - iOS work correctly?

iamimsh commented 4 years ago

Call from iOS to iOS doesn't work. Also calls from iOS to Android doesn't work.

Calls from Android to iOS works fine and also from Android to Android.

But, if the SDK isn't compatible with multiple platforms, or at least between iOS and Android, then there's no point in using this SDK.

TatankaConCube commented 4 years ago

Android and iOS SDKs are fully compatible. I think you should fix call on iOS side (between iOS-iOS) then start testing cross platform cases. Looks like you don't start call on iOS side. To better understanding your issue, please provide us log from android side during make call from iOS.

krishna11124 commented 3 years ago

Hi Is there any Hint About Receive Call-In Background In Android Or Ios??

TatankaConCube commented 3 years ago

@krishna11124 wich functionality do you need? If you need just background calls, you can use the Push notifications feature from our SDK. For iOS, you can use APNS_VOIP or showing a Call kit. This ticket closed, please create a new one and describe your problem.

krishna11124 commented 3 years ago

I Need To Get Background Calls In Android Or Ios Plateform ...And I Can't Understand in Your Blog ...How To Implement It, IS There Any Source Or Source Link About It.Thanks

On Wed, Oct 28, 2020 at 6:23 PM TatankaConCube notifications@github.com wrote:

@krishna11124 https://github.com/krishna11124 wich functionality do you need? If you need just background calls, you can use the Push notifications feature from our SDK. For iOS, you can use APNS_VOIP or showing a Call kit. This ticket closed, please create a new one and describe your problem.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ConnectyCube/android-messenger-app/issues/51#issuecomment-717912763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCETAIKBMHJ2BQSFL24MK3SNAH6HANCNFSM4K435C7A .

TatankaConCube commented 3 years ago

There oriented steps for implementing this feature: 1) caller sends push notification for all opponents with needed call data (use universal pushes for it with parameter ios_voip=1); 2) after receiving push notification on the opponent's side you can:

We realized similar logic in our sample, but instead of showing the Incoming call screen we just show the notification.

krishna11124 commented 3 years ago

Hlow team actually I want to create a tap to return a call feture in app .So When I go back from calling it will not notify in app the call is running or not.so I want to create service like if I go back from calling screen then it's will so me tap to return a call below my app header..like whatsapp If ur developer team support me please feel free to calling or whatsapp +918979720606...R u getting.this??Thanks

On Wed, 28 Oct, 2020, 19:49 TatankaConCube, notifications@github.com wrote:

There oriented steps for implementing this feature:

  1. caller sends push notification for all opponents with needed call data (use universal pushes for it with parameter ios_voip=1);
  2. after receiving push notification on the opponent's side you can:

    • for iOS - show CallKit and by action start chat connection and send need signal (accept or reject) and show call screen if need;
    • for Android - start service, which will connect to the chat and show Call notification and/or Incoming call screen, then by clicking on action open Call screen if need;

We realized similar logic in our sample, but instead of showing the Incoming call screen we just show the notification.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ConnectyCube/android-messenger-app/issues/51#issuecomment-717964940, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCETALL3WQINXGFGMNQ3UDSNASATANCNFSM4K435C7A .

TatankaConCube commented 3 years ago

This functionality completely depends on your needs. For Android, you can use Notification for example. For iOS you can use another solution. Requested functionality not related to Connectycube Flutter SDK or sample. Need to investigate, which features from the Flutter framework will help you to realize the required functionality.