transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.66k stars 426 forks source link

License error - Expo DEBUG #2204

Open stefanodotit opened 3 days ago

stefanodotit commented 3 days ago

Your Environment

eas.json

{
  "cli": {
    "version": ">= 13.1.1",
    "appVersionSource": "remote"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "autoIncrement": true
    }
  },
  "submit": {
    "production": {}
  }
}

Expected Behavior

Expected working in DEBUG mode

Actual Behavior

When I build in development mode everything it's working, when I try to build in preview mode that give me a license error

Steps to Reproduce

  1. eas build --platform android --profile preview

Context

While I'm developing on my computer it's helpful to have a development-server on Expo for autorefresh and try directly on the phone, but then when I would like to try the app in the real world that give me just an LICENSE error and it's not working. How I can try the app without have an expo development server turned on?

christocracy commented 3 days ago

Expected working in DEBUG mode

The plugin is fully functional in DEBUG builds without a license, in spite of licence warnings.

christocracy commented 3 days ago

Google "expo offline build"

stefanodotit commented 15 hours ago

@christocracy I tried a lot of examples but still not working, it still need a dev server. When I create an .apk with expo the license control block everything

christocracy commented 14 hours ago

react-native people use a script like this to generate an offline javascript build that doesn't need a dev server.

https://gist.github.com/christocracy/7aad2b0ab788271fe550d887cd42a5c5

I have almost no experience with Expo, other than learning how to generate an Expo plugin.