Bilişim dünyasına kaliteli, özgün ve Türkçe içerikler kazandırmayı hedefleyen bir platform..

friends friends friends

Default firebaseapp is not initialized in this process

Hata: default firebaseapp is not initialized in this process

React Native Local Notifications kurulumundan sonra aldığım bu hatanın nedeni :

 /**
   * (optional) default: true
   * - Specified if permissions (ios) and token (android and ios) will requested or not,
   * - if not, you must call PushNotificationsHandler.requestPermissions() later
   * - if you are not using remote notification or do not have Firebase installed, use this:
   *     requestPermissions: Platform.OS === 'ios'
   */
  requestPermissions: true,

react-native-push-notification paketinin doküman sayfasında Firebase ile beraber kurulum kodlarına yer verilmiş fakat ben projemde Firebase kullanmadım, yukarıdaki kodları aşağıdaki gibi değiştirmek gerekiyor.

 /**
   * (optional) default: true
   * - Specified if permissions (ios) and token (android and ios) will requested or not,
   * - if not, you must call PushNotificationsHandler.requestPermissions() later
   * - if you are not using remote notification or do not have Firebase installed, use this:
   *     requestPermissions: Platform.OS === 'ios'
   */
  requestPermissions: Platform.OS === 'ios',
React Native default firebaseapp local notification Firebase
0 Beğeni
React-Native
Önceki Yazı

Gesture handler already initialized for root view

20 Ocak 2021 tarihinde yayınlandı.
arrow