Skip to content

Expo app crashes right after launch due to Meteor.connect() #141

Closed
@eminx

Description

@eminx

I have an expo app and trying to do my first release in TestFlight. The app is built successfully in the eas servers and then delivered to Apple for deployment. Everything goes well until I download and open the app: After only like 2 seconds of rendering the register/login page, it just goes immediately blank white. I could not have found a way to address the issue or debug.

Locally, I have no problem using the app either.

I have found out that the crash is due to using Meteor's React Native api-connection function:

import Meteor, { useTracker } from '@meteorrn/core';
import AsyncStorage from '@react-native-async-storage/async-storage';
Meteor.connect('wss://myapp.com/websocket', { AsyncStorage });

I verified that by removing the Meteor.connect() and then the page didn't crash.

Why could it be so? How can I fix this? Thanks!

"@meteorrn/core": "^2.6.0",
"expo": "~49.0.11",
"react-native": "0.72.6",

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions