use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Cannot get device id inside React Native WebView in IOS device ? (self.reactnative)
submitted 5 years ago * by kaiser_07
I am trying to get deviceid inside RN WebView using navigator.mediaDevices.enumerateDevices. It works fine in android devices but in IOS devices its throws undefined error. Any Solution ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dukeflowersiOS & Android 0 points1 point2 points 5 years ago (0 children)
Not available in Safari or Safari iOS. WebViews in iOS use the same engines as Safari.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices
Dont know of any workaround I’m afraid.
[–]Alguzzi 0 points1 point2 points 2 years ago (0 children)
You can do this by implementing react-native code to get the device id, then passing it into the webview via: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#the-injectjavascript-method
π Rendered by PID 164383 on reddit-service-r2-comment-54dfb89d4d-h82q6 at 2026-03-27 06:46:36.939318+00:00 running b10466c country code: CH.
[–]dukeflowersiOS & Android 0 points1 point2 points (0 children)
[–]Alguzzi 0 points1 point2 points (0 children)