question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crashes on Android Nougat, Kitkat and Jellybean. Also on IOS 9 and 8

See original GitHub issue

I was trying to implement a peer to peer video call. I got it working even cross platforms but it has an issue regarding with the platform versions. I tried to debug and found out where it crashes. By the time i call getUserMedia it crashes, not if I remove the video from the object constraint parameter and leave just the audio. For example: working: getUserMedia({ audio: true })

not working: getUserMedia({ audio: true, video: { mandatory: { minWidth: width, minHeight: height, minFrameRate: 30, }, facingMode: 'user' } })

Expected behavior

Successfully sends and receives video requests. can do peer to peer video call.

Observered behavior

App crashes upon sending video request and also upon receiving.

Steps to reproduce the problem

Start the call process or receive the call.

Platform information

  • React Native version: RN v 0.47.0
  • Plugin version: 1.58.3
  • OS: Android
  • OS version: Nougat 7.0, Kitkat 4.4, Jellybean 4.3
  • OS: IOS
  • OS version: 9, 8

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jerameelcommented, Oct 19, 2017

Yes, android has changed their policy since marshmallow, as for iOS I’m not quite sure with 8 and 9 since I’m working fine with the latest version.

Try this out, https://github.com/yonahforst/react-native-permissions

0reactions
jayspiritscommented, Oct 20, 2017

@Jerameel I just want to clarify that the crashing issue that i encountered has nothing to do with the permission thing. It was the getUserMedia constraint i set for the video. I provided too much height and width that causes the crashing. But the permission work around you suggested solved a different issue i encountered after i solved the crashing problem. Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apps crash more on iOS 8 than Android 5.0, iOS 7: Study
According to analytics firm Crittercism, the crash rate of apps is relatively higher on the latest version of iOS than Android 5.0. The...
Read more >
How To FIX Apps Crashing On Android! (2022) - YouTube
Get The Cheapest iPhones Here: https://amzn.to/3JTnWArGet The Cheapest Androids Here: https://amzn.to/3r2k1stFollow Me On Twitter: ...
Read more >
Report: Android Lollipop experiences fewer app crashes than ...
Report: Android Lollipop experiences fewer app crashes than iOS 8. According to data from Crittercism, application crash rates are .2% lower on ...
Read more >
Android version history - Wikipedia
The version history of the Android mobile operating system began with the public release of ... July 9, 2012, and the Nexus 7...
Read more >
Crash when using ellipsize="start" (Jelly Bean) [36950033]
In an App Widget, this issue sends the Android Launcher into a crash loop. It leaves the user no option but to uninstall...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found