Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mwaked opened this issue Feb 27, 2020 · 12 comments
Closed

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

mwaked opened this issue Feb 27, 2020 · 12 comments

Comments

@mwaked
Copy link

mwaked commented Feb 27, 2020

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
Copy link
Contributor

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

@mwaked
Copy link
Author

mwaked commented Feb 27, 2020

@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

1 similar comment
@mwaked
Copy link
Author

mwaked commented Feb 27, 2020

@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
Copy link
Contributor

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

@iamimsh
Copy link

iamimsh commented Feb 28, 2020

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
Copy link
Contributor

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.

@mwaked mwaked closed this as completed Apr 8, 2020
@krishna11124
Copy link

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

@TatankaConCube
Copy link
Contributor

@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
Copy link

krishna11124 commented Oct 28, 2020 via email

@TatankaConCube
Copy link
Contributor

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.

@krishna11124
Copy link

krishna11124 commented Oct 28, 2020 via email

@TatankaConCube
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants