mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
requesting permission for ios notifications
This commit is contained in:
parent
a50287c909
commit
a13f1885fb
@ -3,7 +3,10 @@ import { registerRootComponent } from 'expo';
|
||||
import App from './App';
|
||||
import messaging from '@react-native-firebase/messaging';
|
||||
|
||||
messaging().registerDeviceForRemoteMessages();
|
||||
messaging().requestPermission().then(status => {})
|
||||
|
||||
messaging().registerDeviceForRemoteMessages().then(() => {});
|
||||
|
||||
messaging().setBackgroundMessageHandler(async remoteMessage => {});
|
||||
|
||||
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
|
||||
|
Loading…
Reference in New Issue
Block a user