question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using PushNotification.configure without firebase

See original GitHub issue

Question

Hello, I would like to call a function when the use click to a notification I have looked in the other issues to answer this question. And I have seen many responses to this subject.

I need to use PushNotification.configure as well as onNotification: function

The problem and when I use this function I get the following error:

Default FirebaseApp is not initialized in this process

I only use local notifications so I don’t have to install firebase. Is there a way to call a function when the user clicks on a notification without using firebase?

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

9reactions
Dallas62commented, Nov 28, 2020

Did you at least read what I wrote ?

Can’t be more precise:

   * - if you are not using remote notification or do not have Firebase installed, use this:
   *     requestPermissions: Platform.OS === 'ios'
4reactions
Dallas62commented, Nov 28, 2020

https://github.com/zo0r/react-native-push-notification#usage


  /**
   * (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,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android push notification without firebase - Stack Overflow
The way is to create custom Service https://developer.android.com/reference/android/app/Service.html , which is holding connection via socket or polling ...
Read more >
How to perform Local Push Notifications on React Native ...
Ensuring all dependencies are setup for iOS and Android; Creating a local push notification; Scheduling a push notification in the future ...
Read more >
push notification in react native without firebase Code Example
(optional) Called when the user fails to register for remote notifications. Typically occurs when APNS is having issues, or the device is a...
Read more >
Set up a Firebase Cloud Messaging client app on Apple ...
Relevant areas of the guides provide code examples, both with and without ... In APNs authentication key under iOS app configuration, click the...
Read more >
Firebase Push notifications in React Native Apps - Enappd
Learn how to setup Push notification in React Native apps using Firebase. ... React Native applications render using real mobile UI components, not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found