-
Notifications
You must be signed in to change notification settings - Fork 23
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
App gettting crashed on android on final step #1587
Comments
hi @aliwaqar981, the code snippet looks correct to me. |
@oliverlaz There is not much in stack trace as I can't see any error and app get crashed. Although I'm attaching a video of crash and a log statement which I got. Logs: Video Recording |
Hey @oliverlaz, Hi I've made a repository to produce the issue. It would be great if you can have a look: |
There is one discovery that app is crashing even on latest version ( |
hi @aliwaqar981, thank you for taking the time to prepare a repro app! It made everything easier. I tested with iOS but the fix should be the same for Android as well. Upon running your sample app, I managed to reproduce the crash. The error message attached to it was the following:
Upon providing the permission information in To fix the crash, open the <key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) would like to use your camera</string>
<key>NSMicrophoneUsageDescription</key>
<string>$(PRODUCT_NAME) would like to use your microphone</string> On Android, edit the <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:name="android.hardware.audio.output" />
<uses-feature android:name="android.hardware.microphone" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
...
<application
...
/>
</application>
</manifest> Please let me know if this fixes the issue for you. |
Hi @oliverlaz I did tested only on android but these android permissions are already added in my manifest file. Please see here: |
hi @aliwaqar981, I'm sorry! I've somehow missed your last comment. |
Hi @oliverlaz, yes I'm still facing this same issue. Although for now I've used an alternative video service in my project. |
Which package/packages do you use?
@stream-io/video-react-native-sdk
Describe the bug
I tried following the guideline for react native but in the end when I set call in state. App is getting crashed.
To Reproduce
Steps to reproduce the behavior:
Attaching a repo which might help in reproduction:
https://github.com/aliwaqar981/GetStreamRePro
I tried to create reproduction in separate project. It was working correctly there. My new project was on react-native 0.76.2. I'm thinking maybe that's the reason but I'm not sure.
Expected behavior
Video call should get starts after running above code snippet.
Screenshots
If applicable, add screenshots to help explain your problem.
Version
Env:
Fill out what's applicable
React Native
react-native: 0.74.3
Node JS client
Additional context
It seems some compatibility issue of sdk with react-native 0.74.3 because it worked on 0.76.2.
The text was updated successfully, but these errors were encountered: