mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
* set shouldEstablishDirectChannel to NO * tests: make `onMessage` test Android only This test will no longer function on simulators as a direct message channel is no longer established. Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
This commit is contained in:
@@ -171,7 +171,7 @@ describe('messaging()', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('receives messages when the app is in the foreground', async () => {
|
||||
android.it('receives messages when the app is in the foreground', async () => {
|
||||
const spy = sinon.spy();
|
||||
const unsubscribe = firebase.messaging().onMessage(spy);
|
||||
if (device.getPlatform() === 'ios') {
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
dispatch_once(&once, ^{
|
||||
RNFBMessagingFIRMessagingDelegate *strongSelf = weakSelf;
|
||||
[FIRMessaging messaging].delegate = strongSelf;
|
||||
[FIRMessaging messaging].shouldEstablishDirectChannel = YES;
|
||||
[FIRMessaging messaging].shouldEstablishDirectChannel = NO;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user