-
Notifications
You must be signed in to change notification settings - Fork 170
VIDCS-3882: ConnectionServices Kotlin sample #548
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1 @@ | |||
/build No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, already ignored in parent gitignore.
you could remove this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After ignoring the /build I see a problems-report-html of the build folder. It may be better to leave it?
Basic-Video-Chat-ConnectionService-Kotlin/app/proguard-rules.pro
Outdated
Show resolved
Hide resolved
...rc/androidTest/java/com/vonage/basic_video_chat_connectionservice/ExampleInstrumentedTest.kt
Outdated
Show resolved
Hide resolved
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
<uses-permission android:name="android.permission.CALL_PHONE" /> | ||
<uses-permission android:name="android.permission.MANAGE_OWN_CALLS" /> | ||
<!--<uses-permission android:name="android.permission.BIND_TELECOM_CONNECTION_SERVICE" />--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
} | ||
|
||
override fun onError(publisherKit: PublisherKit, opentokError: OpentokError) { | ||
//callback?.onError("PublisherKit onError: " + opentokError.message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add basic error handling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added error handling
...ce-Kotlin/app/src/test/java/com/vonage/basic_video_chat_connectionservice/ExampleUnitTest.kt
Outdated
Show resolved
Hide resolved
Fixed issues |
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" /> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" /> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let;s also add Bluetooth permission
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just checked and with the current foreground permissions bluetooth audio devices keep connected and working in the background.
Manifest.permission.MANAGE_OWN_CALLS | ||
) | ||
else -> arrayOf( | ||
Manifest.permission.INTERNET, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bluetooth permission can also be for versions below tiramisu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated permission request with customized request for each version range
Please add a workflow for both connection services samples https://github.com/opentok/opentok-android-sdk-samples/tree/main/.github/workflows. It will just build the project so that we are at least aware it does not brake with future changes |
Added! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is already added in the java sample PR .github/workflows/build-basic-video-chat-connectionservice-java.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, deleted!
…n from the connection
@VZaphod 2.31.0 is out. We can go ahead and finish with this. |
No description provided.