Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Vasilis Mavromatis
    @vmavromatis
    I hope these compatibility fixes for SDK37 can make it into a more "official" release
    Vasilis Mavromatis
    @vmavromatis
    image.png
    ^ For your reference, here is what my package json look now after upgrading from SDK31 to SDK37 (that's a lot of changes btw)
    Vasilis Mavromatis
    @vmavromatis

    Seems I still cannot connect, the error I receive:

    Not connected
    Disconnected from DDP server.
    Object {
      "connected": false,
      "status": "disconnected",
    }

    My debugger complains about the import of async storage even though I dont have it as a dep and neither seems to be a cross dep (npm ls | grep async). I did adb reverse 3000 already.

    Ivan Rubanovskiy
    @xvonabur
    @lc3t35 my fork has collections: https://github.com/xvonabur/react-native-meteor#collections. Yes, it’s ‘Mongo.collection’, not ‘Meteor.collection’, so naming can be a little weird, but it works.
    Unfortunately this week was very busy, so I didn’t have time to look into your commits closely, but hopefully I’ll do it next week.
    Ivan Rubanovskiy
    @xvonabur
    @vmavromatis pay attention to the code you are using. Maybe something is trying to require Async Storage from react-native itself and not community version?
    Vasilis Mavromatis
    @vmavromatis
    @xvonabur I double checked, I do use async but import it as recommended in expo docs (from react-native hence nothing in my package.json), seems they haven't migrated to community version yet and it's just a warning. That said I still face the issue of being unable to connect using lc3t35 dev code. Thanks for looking at this issue.
    Laurent Roger
    @lc3t35
    @vmavromatis if you want some help, show some code : how do you connect to meteor, is meteor server running fine, can you connect with meteor's client...
    Vasilis Mavromatis
    @vmavromatis

    @lc3t35 here is how I am trying to connect:

    import React, {Component} from 'react'
    import Meteor, { withTracker } from 'react-native-meteor'
    import { connect } from 'react-redux'
    
    import { updateMeteorData } from './ReduxActions'
    
    import settings from './config/settings'
    import RootRouter from './RootRouter'
    
    import Loading from './components/Loading'
    
    Meteor.connect(settings.METEOR_URL)
    
    class ReactNativeApp extends Component {
      componentWillMount () {
        this.updateReduxStore(this.props)
      }
    
      componentDidMount () {
        this.updateReduxStore(this.props)
      }
    
      updateReduxStore (props) {
        this.props.dispatch(updateMeteorData(props.meteor))
      }
    
      render () {
        console.log(Meteor.status())
        // if (this.props.meteor.status.connected === false || this.props.meteor.loggingIn) {
        //   console.log('Not connected')
        //   return <Loading />
        // }
        return <RootRouter user={this.props.meteor.user} />
      }
    }
    
    const connectedApp = withTracker(() => {
      return {
        meteor: {
          status: Meteor.status(),
          user: Meteor.user(),
          loggingIn: Meteor.loggingIn()
        }
      }
    })(ReactNativeApp)
    
    export default connect()(connectedApp)

    Meteor server is running fine. Also METEOR_URL = 'ws://xxxxxxxx.herokuapp.com/websocket'

    Laurent Roger
    @lc3t35
    use meteor.ddp.on("connect", ...) to check if connect is fine, I would log props.meteor in render to monitor changes.
    to all, i found this version https://github.com/ajaybhatia/react-native-meteor with useTracker implementation.
    Foysal Ahamed
    @foysalit
    @vmavromatis FWIW, I just updated my fork of the package and got it to build on expo v37. the netinfo package fell out of sync with latest version which was causing the build to fail on expo. https://github.com/foysalit/react-native-meteor
    if you want to use my repo for now, please update all your references to react-native-meteor with @foysalit/react-native-meteor
    Foysal Ahamed
    @foysalit
    I still think we could have a much better package if we combined all our efforts. I have less time nowadays but just a few hours every weekend from 3/4 members (including me) can keep the package up to date and working. I'm seeing a lot of forks solving everyone's own problems and if we could put all of them in one place we would have a much more stable package at this point.
    Ivan Rubanovskiy
    @xvonabur
    I agree with @foysalit. So much forks from original repo and forks from another forks. It's time to pick one with most problems solved and port other solutions to it. I don't mind to abandon my fork, since it's fork from another abandoned fork and I don't have much time to properly support it.
    Laurent Roger
    @lc3t35
    due to an error, something happened on the original repo, they wake up ! inProgress-team/react-native-meteor#364
    i fixed my fork to solve the loggingIn problem
    Laurent Roger
    @lc3t35
    Are we able to work together on a common project ? first step would be an online review of each fork : is it uptodate (sdk37), which issues does it solve, which features are removed/added ?
    My timezone is GMT+2 (Paris), if you want to join this effort, what is your timezone ?
    I can organize 2 meetings (early in the morning, late at night) if the
    timezones are too far away to have one meeting
    Laurent Roger
    @lc3t35
    @foysalit @xvonabur who else want to join ?
    Ivan Rubanovskiy
    @xvonabur
    My timezone is GMT +3
    Polaris Web Technology
    @PolarisWT

    I found this recently after trying a different DDP (SimpleDDP + Redux-Persist) to achieve what this package does. I found a newly named fork meteor-react-native, which lead me to this gitter. Glad to find some support for continuing this! I haven't fully looked what was changed from react-meteor-nativeto meteor-react-native But I added a TheRealNate/meteor-react-native#7 (since merged) to allow for customized AsyncStorage to be passed via options when connecting.

    My setup is Expo v37. I have not experienced any disconnects on iOS or Android in development on emulator or device. Are there real-world issues that arise in production that is still being experienced by others?

    Flash
    @vforvasile
    I am also curious about meteor-react-native, anyone use it in Production?
    Laurent Roger
    @lc3t35
    I would review it before use in production
    Roghashin Timbiti
    @ezrogha
    Hello, Has anyone here used meteor-react-native for android versions 9 and above, It works fine on development, but when turned into an apk meteor work for all other android versions except 9 and above.
    Ivan Rubanovskiy
    @xvonabur
    @ezrogha Hello! I have no problem with my fork and Android 10. Can you give more details about your problem? Are there any errors?
    Roghashin Timbiti
    @ezrogha
    Thanks for your quick response @xvonabur, There where no errors whatsoever it just didn't connect. I however had to add android:usesCleartextTraffic="true" to my manifest for it to work
    Ivan Rubanovskiy
    @xvonabur
    What address does your backend have? Is it wss:// or ws://?
    Android 9+ forbids insecure connections in release builds, by default. You have to use android:usesCleartextTraffic="true" to enable it.
    Roghashin Timbiti
    @ezrogha
    it's ws://
    Thanks for that clarification
    Laurent Roger
    @lc3t35
    Hi, I spent a little time reviewing TheRelNate repo and found this closed issue : TheRealNate/meteor-react-native#28
    Laurent Roger
    @lc3t35
    we need a stable and usable in production repo, now (not in months)
    I suggest again to list the issues that were fixed by the existing forks, and achieve a comlon stable version (with tests), so people can use the package in production until a new thing comes (such as meteor-api)
    this gitter is not the best place to work on this : would a trello fit to participants ?
    Diego Robles
    @rpmdevcl
    hello! im trying to connect to meteor server hosted on my machine from another on same local network running a react native project with meteorrn-core. The issue is that I cant connect from react native when calling Meteor.connect(ws://ip:port/websocket). Do i need to config something on meteor to expose this /websocket endpoint?
    Laurent Roger
    @lc3t35
    wss instead of ws ? check firewall ? does it work with standard web client ?
    check if the device (real or simulator) on the same network ? does it work with simulator ?
    Foysal Ahamed
    @foysalit
    @lc3t35 I think meteor has officially accepted TheRealNate/meteor-react-native since they link to this package in their official guides. We should focus our efforts in that fork from here on.
    Shubham740
    @Shubham740
    hello! guys Im using meteor for my backend with React native Im facing issue-
    that my application is running fine on the debug mode but when Im making a release apk build my app is not connecting to meteor server its only showing a loader (loader which Im using for waiting for the response) please help me Im stucked badly in this issue.
    Laurent Roger
    @lc3t35
    @Shubham740 how do you connect to meteor ? what do you mean by "debug mode" ? does it connect with the app loaded on a simulator ? which library are you using ? can you catch ddp.on connect/disconnect, put just a console.log("connected")and watch the adb log with your device connected by usb
    Pulkit Garg
    @wittycodes
    hi @lc3t35 , is react-native-meteor dead?
    @lc3t35 there is a new requirement in our company to make a react-native app, currently, we are using meteor for accounts and admin dashboard (we were trying to migrate out of meteor recently). Should we make app using react-native-meteor so it may serve as a quick connection to meteor backend we already have? is it that stable?
    Pulkit Garg
    @wittycodes
    if not, should we not use meteor in the react-native app, and simply look for other real-time methods for solving the purpose. Will meteor be problematic in long run for react native?
    Laurent Roger
    @lc3t35
    @wittycodes did you check https://guide.meteor.com/react-native.html
    use the supported @meteorrn/core package
    carlosmbinf
    @carlosmbinf
    Hello, I have not been able to connect react-native with my backend in meteor, what solutions are there to establish this connection?
    Laurent Roger
    @lc3t35
    @carlosmbinf which package are you using ? how do you connect ?