NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
187 stars 104 forks source link

[@nativescript/google-signin] iOS GIDSignIn object missing signin JS functions when deployed to TestFlight\AppStore #587

Closed sitefinitysteve closed 1 month ago

sitefinitysteve commented 1 month ago

Urgent issue, after deploy, no users can log in... all worked great locally, and I can't revert the app on the store back to a working version.

This is the simulator image

This is a screenshot from the physical app when run with ns run ios --release OR through TestFlight\Store image

You can see any function starting with signIn appears to be missing, they are obviously the MOST IMPORTANT part of this package

Functions enumerated with this

    function listAllFunctionsToString(obj) {
        let functionsSet = new Set();
        let currentObj = obj;

        do {
          Object.getOwnPropertyNames(currentObj).forEach(name => {
            if (typeof currentObj[name] === 'function') {
              functionsSet.add(name);
            }
          });
        } while ((currentObj = Object.getPrototypeOf(currentObj)));

        // Convert the Set to an array and join with newline characters
        return Array.from(functionsSet).join('\n');
      }

    // @ts-ignore
    bindable.debug = listAllFunctionsToString(GIDSignIn.sharedInstance);
sitefinitysteve commented 1 month ago

Anyone else getting this, update NativeScript to 8.7.1, was borked on 8.7