Error while importing project Google signin sdk - cocoa-touch

When I Import project Google signin sdk, reported this error:
How to solve it?

Related

error cordova android 11.0.0 firebase auth

Good day.
I try to authenticate with firebase using cordova and android 11.0.0 I followed this tutorial:
https://firebase.google.com/docs/auth/web/cordova
But I have an error with the plugin cordova-plugin-browsertab has a dependency with cordova-plugin-compat that is not compatible for versions higher than android 6.0 I don't know how to solve it to be able to authenticate with firebase.
I don't know how to solve it to be able to authenticate with firebase.

Integrate facebook sdk to track event in app

I have tried to integrate facebook analytics to my app which was generated by expo but got error
Undefined is not an object( evaluating AppEventsLogger.logEvent)
I have tried to use expo eject to use expokit and then add the following code
import {AppEventsLogger} from 'react-native-fbsdk';
AppEventsLogger.logEvent('battledAnOrc');
Is there anyone add facebook analytics to app which generated by expo before?
That's expected behaviour since react-native-fbsdk includes native code (Any library that includes a react-native link step in its installation instructions)
Currently, there are no built-in modules in Expo that have made that module available. It can be seen that we are working hard at the moment.
If you want to use a module, you need to make the app a stand-alone app.
You can run this expo eject and yarn add react-native-fbsdk and react-native link react-native-fbsdk

Generate google-services.json for Android GoogleSignIn when not using Firebase

I am trying to enable GoogleSignin in my React Native app for Android, which does not use Firebase. However, when I go through the "Configure a Project" process in the Google SignIn for Android console (found here: https://developers.google.com/identity/sign-in/android/start-integrating) to generate a google-services.json file, I instead get a credentials.json file.
The schemas are different and I already tried renaming the credentials.json to google-services.json but to no avail. Furthermore, when I click the "Configure a Project" button again, I now get a pop up saying "Something went wrong. Please try again later." In my browser console I see that it is a 409 error.
How can I generate the google-services.json file for a non Firebase project?
I don't think it's possible to do this without Firebase. I was under the impression that if I wasn't using a Firebase database that it wouldn't be a good idea to register my app there. But, it seems like Firebase and Google have partnered over this so I went ahead and did it anyway and got the google-services.json that I needed (and still not using Firebase for my db).

Connecting firebase to ionic3 app

I am trying to connect Firebase to an Ionic 3 app. I have installed the Firebase library and imported all the requirements needed, but I have this error:
Runtime Error Uexpected value 'AngularFiredatabase' imported by the module "AppModule' please add #NgModule annotation

"Application ... not registered" with React Native app on AWS Mobile Hub

I'm trying to learn and understand how AWS Mobile Hub works.
Based on I'm trying to create a React Native app from scratch and connect to a AWS Mobile Hub.
I followed the steps in the AWS Mobile React Native Starter # Use features in your app to create a React Native app from scratch.
Setup a new project in AWS Mobile Hub.
Used awsmobile init <ID> to setup the react project for AWS Mobile Hub.
Enabled User Sign-in on AWS Mobile Hub project.
Setup Authentication in the React Native project.
(ps. there is an error in the guidelines because 'Amplify' import is missing)
Run the app with npm run ios
No matter what I do, I alway get a 'Application ... has not been registered' error.
The example backend from 'AWS Mobile React Native Starter' does work.
I have tried to compare both AWS Mobile Projects, but cannot find what causes the 'Application ... has not been registered' error.
I want to understand this AWS Mobile Hub thing and want to be able to setup projects myself and know how to integrate it into apps.
Any help to solve this error is greatly appreciated.
Finally found the problem.
First I thought it was because index.ios.js and index.android.js were missing, but then saw those are not needed anymore.
Aparently, when doing an application from scratch, the created 'index.js' does not have the correct component name. Changing the wrong name in AppRegistry.registerComponent('wrongname', () => App); to the correct application name, matching aws_project_name in aws-exports.js, fixed the issue.
The app now loads. Hurray!
Next problem: when signing in I get a 'No Userpool' message. Checked all config and Mobile Hub project, but the user pool seems correctly configured...
Update: also found the issue with 'No userpool'. When debugging the application, I noticed that the configuration received by Amplify.configure function was undefined. But I copied this code:
import { withAuthenticator } from 'aws-amplify-react-native';
import {awsmobile} from './aws-exports';
from this AWS React Native Starter App tutorial. But apparently it is not working.
Replacing that bit by this:
import Amplify from 'aws-amplify-react-native';
import aws_exports from './aws-exports';
from
AWS Documentation » AWS Mobile » Developer Guide » AWS Amplify Library for React Native » Get Started
. Now it suddenly works.
Thanks AWS! Took me couple of nights to find :-/
I saw that problem before when there is a version of aws-amplify installed under aws-amplify-react-native. That happens when the version of aws-amplify installed on the project is not the one that requires aws-amplify-react-native. I hope everything goes well with your app.