Skip to content
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

Invalid license Key #2147

Open
dalexmolina opened this issue Sep 19, 2024 · 5 comments
Open

Invalid license Key #2147

dalexmolina opened this issue Sep 19, 2024 · 5 comments

Comments

@dalexmolina
Copy link

Your Environment

  • Expo version: 51.0.32
  • Plugin version: 4.17.1
  • Platform: Android
  • OS version: 13
  • Device manufacturer / model: Samsung S20 FE 5G / SM-G780G
  • React Native version (react-native -v): 0.76.3
  • Plugin config
useEffect(() => {

        BackgroundGeolocation.ready({

            desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
            distanceFilter: 30,
            //locationUpdateInterval: 5000,
            disableElasticity: true,
            stopTimeout: 5,
            debug: false, // <-- enable this hear sounds for background-geolocation life-cycle.
            logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
            stopOnTerminate: true,   // <-- Allow the background-service to continue tracking when user closes the app.
            startOnBoot: false,        // <-- Auto start tracking when device is powered-up.
            notification: {
                title: "Seguimiento de ruta",
                text: "Se esta compartiendo su posición"
            }

        }).then((state) => {

            if (!state.enabled) {
                setEnabledLocationService(true)
                console.log('=== SE CARGO SERVICIO ===')
            }

        }).catch(error => {
            console.warn('- BackgroundGeolocation error: ', error);
        });;

    }, []);


	=== app.json ====
	
	
"plugins": [
      "@react-native-firebase/app",
           [
               "react-native-background-geolocation", {
                 "license": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
               }
           ],
           [
               "expo-gradle-ext-vars", {
                 "googlePlayServicesLocationVersion": "21.1.0",
                 "appCompatVersion": "1.4.2"
              }
           ],
             "react-native-background-fetch"
    ]

Expected Behavior

N/A

Actual Behavior

Shows a notification with the error of "invalid license key"

ImportedPhoto_1726752964367

Steps to Reproduce

Everytime the app starts

@christocracy
Copy link
Member

Are you sure the license key you generated matches the Android package name defined in your app.json?

Did you completely follow the Setup Instructions and Re-build?

After running npx expo prebuild, you must run your Android app as follows:

npx expo run:android

See the Expo docs for Prebuild

@dalexmolina
Copy link
Author

dalexmolina commented Sep 19, 2024

Yes, the name of the package was correct, but i'm using Expo EAS for the builds, also i followed the instructions..

@christocracy
Copy link
Member

You're building development builds with eas build?

so you ran this?

 eas build --profile development

@dalexmolina
Copy link
Author

Yes, also created a production build ( eas build --profile production ) and published it in an appstore for testing purposes and the message persists.

@christocracy
Copy link
Member

I suggest you first build locally:

$ npx expo prebuild
$ npx expo run:android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants