title: Expo push notifications not working on Android standalone app
body: <p>I'm working on an expo app and I've added expo push notifications and that's working for iOS but not on android. The problem is caused by getExpoPushTokenAsync() because it doesn't resolve.</p>
  <p>I'm working with Expo version 40.0.0 and using the following code to get the notification token:</p>
  <pre><code>export async function registerForPushNotificationsAsync(t) {
    if (Constants.isDevice) {
      const { status: existingStatus } = await Permissions.getAsync(Permissions.NOTIFICATIONS);
      let finalStatus = existingStatus;
      if (existingStatus !== 'granted') {
        const { status } = await Permissions.askAsync(Permissions.NOTIFICATIONS);
        finalStatus = status;
      }
      if (finalStatus !== 'granted') {
        alert(t('no_access_push_notifications'));
        return;
      }
      const token = await Notifications.getExpoPushTokenAsync();
      return token;
  
      // this.setState({ expoPushToken: token });
    } else {
      console.log(&quot;No physical device&quot;);
    }
  
    if (Platform.OS === 'android') {
      Notifications.setNotificationChannelAsync('default', {
        name: 'default',
        importance: Notifications.AndroidImportance.MAX,
        vibrationPattern: [0, 250, 250, 250],
        lightColor: '#FF231F7C',
      });
    }
  };
  </code></pre>
  <p>I've created a new project in Firebase according to the Expo docs for Android and copied the google-services.json to the root of my app and linked it in my app.json</p>
  <pre><code>{
    &quot;project_info&quot;: {
      &quot;project_number&quot;: &quot;xxxxxxxxx&quot;,
      &quot;project_id&quot;: &quot;xxxxxxxxx&quot;,
      &quot;storage_bucket&quot;: &quot;xxxxxxxxx&quot;
    },
    &quot;client&quot;: [
      {
        &quot;client_info&quot;: {
          &quot;mobilesdk_app_id&quot;: &quot;xxxxxxxxx&quot;,
          &quot;android_client_info&quot;: {
            &quot;package_name&quot;: &quot;xxxxxxxxx&quot;
          }
        },
        &quot;oauth_client&quot;: [
          {
            &quot;client_id&quot;: &quot;xxxxxxxxx&quot;,
            &quot;client_type&quot;: 3
          }
        ],
        &quot;api_key&quot;: [
          {
            &quot;current_key&quot;: &quot;xxxxxxxxx&quot;
          }
        ],
        &quot;services&quot;: {
          &quot;appinvite_service&quot;: {
            &quot;other_platform_oauth_client&quot;: [
              {
                &quot;client_id&quot;: &quot;xxxxxxxxx&quot;,
                &quot;client_type&quot;: 3
              }
            ]
          }
        }
      }
    ],
    &quot;configuration_version&quot;: &quot;1&quot;
  }
  </code></pre>
  <p>My app.json contains the following code:</p>
  <pre><code>&quot;android&quot;: {
        &quot;package&quot;: &quot;xxxxx&quot;,
        &quot;versionCode&quot;: 4050,
        &quot;googleServicesFile&quot;: &quot;./google-services.json&quot;,
        &quot;config&quot;: {
          &quot;googleSignIn&quot;: {
            &quot;apiKey&quot;: &quot;xxxxx&quot;
          }
        },
        &quot;useNextNotificationsApi&quot;: true
      },
  </code></pre>
  <p>Any thoughts on this?</p>