-
Notifications
You must be signed in to change notification settings - Fork 21
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
_reactNativeMdm2.default.isSupported is not a function. #14
Comments
@yuxiaoma could you double check that you've properly linked the Native Module on the native side? It doesn't look like we describe the setup process, apologies. You'd link it natively like you would normally with a RN module; no extra steps with |
yes, that turns out to be the issue. thanks for the quick reply. |
@ajwhite
Then I did the link again I got:
I was able to build the app successfully, but it crashes without any error output the secound it start to run. I'm pretty sure the app stopped working after linking the package, isolated all other factors. Did I do something wrong here? What should be the steps to make for this to work? Thank you very much! |
Is this happening on Android or iOS?
Looks like we haven't added support for automated linking. In the meantime, reset your changes and link manually |
This is happening on iOS. I will try to link manually, but it would great if the package has automated linking support. |
For sure, let's keep this issue open to track that |
Hi, I have a problem with building an app with react-native-mdm library for iOS. Below is the error which I get: I did manual link of the library to my Xcode project. I added AppConfigSettingsFramework.framework and libRNMobileDeviceManager.a libraries to the "Link Binary With Libraries" section in Build Phases and locally it works, but on the build server I get an error. It looks like RNMobileDeviceManager library is build before AppConfigSettingsFramework. How can I enforce proper build order? |
Hi, i have the same problem, i solved it opening the RNNMobileDeviceManager.xcodeproj and setting in 'Build Phases' 'AppConfigSettingsFramework' as Target Dependencies. Hi @ajwhite what do you think about applying this change in next release ? |
Hi all. @DiegoNegri and @ajwhite I was facing the same issue after running Would it be a good idea to add this to the README file? |
Hi @ajwhite @DiegoNegri @blainsadler @zachdunn @mcos @samdunn @brianmuse can i get Screen time in the IOS using this library. Please provide me detail for this. As i am getting some error while using it. |
Hi @ajwhite
I am very glad someone has built this bridge for react native to better integrate with MDM. Thank you!
However, I keep getting this error saying
TypeError: _reactNativeMdm2.default.isSupported is not a function
or
TypeError: _reactNativeMdm2.default.getConfiguration is not a function
I called these function exactly like instructed in your README.md file.
Is something deprecated or changed?
I am on "react-native-mdm": "^1.0.4"
Thanks
The text was updated successfully, but these errors were encountered: