[tests] Update instanceid module name

This commit is contained in:
Chris Bianca 2018-03-28 16:21:09 +01:00
parent cf24a7dcc8
commit ffe9f19c16
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ RNfirebase.utils().logLevel = 'warn'; // default
const notifications = async () => { const notifications = async () => {
try { try {
await RNfirebase.messaging().requestPermission(); await RNfirebase.messaging().requestPermission();
const instanceid = await RNfirebase.instanceid().get(); const instanceid = await RNfirebase.iid().get();
console.log('instanceid: ', instanceid); console.log('instanceid: ', instanceid);
const token = await RNfirebase.messaging().getToken(); const token = await RNfirebase.messaging().getToken();
console.log('token: ', token); console.log('token: ', token);
@ -40,7 +40,7 @@ const notifications = async () => {
RNfirebase.notifications().onNotificationDisplayed(notification => { RNfirebase.notifications().onNotificationDisplayed(notification => {
console.log('onNotificationDisplayed: ', notification); console.log('onNotificationDisplayed: ', notification);
}); });
// RNfirebase.instanceid().delete(); // RNfirebase.iid().delete();
const channel = new RNfirebase.notifications.Android.Channel( const channel = new RNfirebase.notifications.Android.Channel(
'test', 'test',
'test', 'test',