title: React Native : Error: [messaging/unknown] java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: FIS_AUTH_ERROR
body: <p>I am trying to implement the push notification in my app. I have used <code>react-native-firebase/app</code> and <code>@react-native-firebase/messaging</code> libraries for the push notification. i have follow the complete document and try to implement push notification. But I have showing this error <strong>getting push token Error: [messaging/unknown] java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: FIS_AUTH_ERROR</strong>.</p>
  <p>Code:</p>
  <pre><code>import React, {Fragment, useEffect} from 'react';
  import {StyleSheet, View, Text, Button} from 'react-native';
  import messaging from '@react-native-firebase/messaging';
  
  //1
  const checkPermission = () =&gt; {
    messaging()
      .hasPermission()
      .then((enabled) =&gt; {
        if (enabled) {
          getToken();
        } else {
          requestPermission();
        }
      })
      .catch((error) =&gt; {
        console.log('error checking permisions ' + error);
      });
  };
  
  //2
  const requestPermission = () =&gt; {
    messaging()
      .requestPermission()
      .then(() =&gt; {
        getToken();
      })
      .catch((error) =&gt; {
        console.log('permission rejected ' + error);
      });
  };
  
  //3
  const getToken = () =&gt; {
    messaging()
      .getToken()
      .then((token) =&gt; {
        console.log('push token ' + token);
      })
      .catch((error) =&gt; {
        console.log('error getting push token ' + error);
      });
  };
  
  const Notification = () =&gt; {
    useEffect(() =&gt; {
      checkPermission();
      messaging().setBackgroundMessageHandler(async (remoteMessage) =&gt; {
        console.log('Message handled in the background!', remoteMessage);
      });
  
      
    });
    
    return (
      &lt;View style={styles.container}&gt;
        &lt;Text&gt;Push Notification&lt;/Text&gt;
       
      &lt;/View&gt;
    );
  };
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      justifyContent: 'center',
      alignItems: 'center',
    },
    button: {
      margin: 10,
    },
  });
  
  export default Notification;
  </code></pre>