[tests] Update instanceid module name
This commit is contained in:
parent
cf24a7dcc8
commit
ffe9f19c16
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue