FCM (Firestore Cloud Messaging) SDK 28/29

So first of all I complete all steps to FCM since SDK 28 and it works quite good, thanx for that.

But there is some information/question issues

  1. Push-notifications on Android - FCM don’t work on test-phone, APN iPhone works well, so you need production to test, on Android it’s more ease than on Google.Play, heh :slight_smile:

  2. We’ve got Notification-channels, it’s great, but how could I use them when I send message from my backend on node-JS?

In Documentation we only got information for local notifications :slight_smile:

    Expo.Notifications.createChannelAndroidAsync('reminders', {
      name: 'Reminders',
      priority: 'max',
      vibrate: [0, 250, 250, 250],
    });
  }
}

// ...

_createNotificationAsync = () => {
  Expo.Notifications.presentLocalNotificationAsync({
    title: 'Reminder',
    body: 'This is an important reminder!!!!',
    android: {
      channelId: 'reminders',
      color: '#FF0000',
    },
  });
}

Or we got channels only for local push notifications, so we’ve to keep always open app for sending them until background-mode comes to Expo ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.