Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    karthikpala
    @karthikpala
    evollu/react-native-fcm#435
    I am able to see that the app is started from [DEAD] in android studio logcat but I am unable to log anything from the console
    can anyone help?
    karthikpala
    @karthikpala
    ??
    的 Aureelio
    @AurelienPlvs_twitter
    Please help me ! evollu/react-native-fcm#565
    ivargc
    @ivargc
    Hi, I'am using the custom_notification option with Cloud Functions to receive notifications when the App is in foreground and works fine. I want to prevent the notification shows up based on the data of the payload, it is this posible? I try with FCM.removeAllDeliveredNotifications but this remove the notifications after they are shows up
    Libin Lu
    @evollu
    @ivargc nope. what you can do is passing data payload without custom_notification and build a local notification in JS callback. This will work for android
    ivargc
    @ivargc
    @evollu Thanks, works, but there is some bug here:
    FCM.presentLocalNotification({
    title: notif.fcm.title,
    body: notif.fcm.body,
    priority: "high",
    obra: notif.obra,
    hito:notif,hito,
    //show_in_foreground: true,
    local: true
    });
    this version of presentLocalNotification stops the App really bad. Instead I use this other version:
    FCM.presentLocalNotification({
    body: notif.fcm.body,
    priority: "high",
    title: notif.fcm.title,
    sound: "default",
    "large_icon": "ic_launcher",// Android only
    icon: "ic_launcher",
    "show_in_foreground" :true, / notification when app is in foreground (local & remote)/
    vibrate: 300, / Android only default: 300, no vibration if you pass null/
    "lights": true, // Android only, LED blinking (default false)
    status: notif.status
    });
    Libin Lu
    @evollu
    hito:notif,hito, this is a typo?
    ivargc
    @ivargc
    yes, sorry, but ... this usually show me a red screen only, I don't now why the App crash totally
    The App has a chat component, and if there is a new message, all the registered users receive a Notification except if the user has the App on the same chat (Foreground). Thanks to @evollu now is working fine
    Rajiv Shah
    @rajivshah3
    @evollu hi, is it possible for me to show these notifications in-app (e.g. a pop-up) instead of a push notification? I want the user to be notified once they open the app
    Libin Lu
    @evollu
    @rajivshah3 you can send data only notification and build your own popup in notification callback.
    Rajiv Shah
    @rajivshah3
    Thanks!
    Lucas Bento
    @lucasbento

    you can send data only notification and build your own popup in notification callback.

    @evollu: I'm kinda trying to achieve the same, the app doesn't receive anything on FCM.on(FCMEvent.Notification, function()) if I send only data without notification

    Libin Lu
    @evollu
    @lucasbento did you "content_available" to be true?
    Lucas Bento
    @lucasbento
    @evollu: yep, my payload is:
    {
        "to": "token",
        "priority": "high",
        "data": {
            "badge": 1,
            "alert": "New data is available"
        },
        "content_available": true
    }
    I'm trying to receive it even if the app is on background
    that way seems to work with the app running
    I'm trying to parse the incoming notifications and show them with presentLocalNotification()
    John Haupenthal
    @johnhaup
    Hello everyone. This will probably seem dumb. I've got FCM installed and notifications are showing up in my emulator (though only when the app is in the background). Where do I paste the code from the Usage section in the doc? I am basically trying to figure out how to access the methods associated with the notification, ie what file or new file should receive that code?
    Thanks!
    Libin Lu
    @evollu
    @johnhaup check the example solution in the repo
    John Haupenthal
    @johnhaup
    Will do! Thanks
    sfm2222
    @sfm2222

    hi..can anyone tell me the solution for: I'm sending notification from C# code

    {
    to: "fcm_token",
    notification: {
    body: "your order is okay",
    title: "Brg - Your order"
    },
    data:{
    body: "your order is okay",
    title: "Brg - Your order",
    type="newentry"
    },
    }
    I'm receiving notification on ios. I'm performing some actions in FCM.on(FCMEvent.Notification, notif => { method.

    this.notificationListener = FCM.on(FCMEvent.Notification, async (notif) => { is only called when iOS app is in foreground not in background. When opening app clicked from notification this is never called.

    I've added content_available:true but it didnt helped as well
    Julius Kamiri
    @Kabangi
    Hello everyone. I have managed to implement notifications with this great library but I am experiencing this evollu/react-native-fcm#721. Anyone with info on how to go around this?
    Petar Ivanov
    @pepincho

    Hello everyone,
    I am facing a terrible issue and I can't find its solution for several hours ... :(
    I am trying to integrate react-native-fcm with noncocoapod approach in existing react native project with already configured react-native-fbsdk. I followed all steps on the README file both at the github repo and the Firebase SDK dir but with no success.
    In my Xcode project I have 'Frameworks " dir and I have putted all frameworks from Firebase SDK - Analytics & Messaging there and also Firebase.h & module.modulmap files. When I build the project I face this error:

    In file included from /Users/petarivanov/Projects/appointments/appointments/node_modules/react-native-fcm/ios/RNFIRMessaging.m:1:
    /Users/petarivanov/Projects/appointments/appointments/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:9: fatal error: module 'FirebaseCore' not found
    @import FirebaseCore;

    I've also tried several variations in organizing imports, files and directories but no one helped me to solve the problem.
    I will be glad if anyone could help me with this annoying problem.
    Thanks!!!

    Suvodeep Pyne
    @suvodeep-pyne
    Am running into errors getting fcm to work with react-native 0.52.*. Anybody else facing any issues?
    Derek Schultz
    @derek-schultz
    i think i might have changed some package versions and react-native-fcm stopped working. what versions of react/react-native/react-native-fcm are you all using that work together?
    sfm2222
    @sfm2222
    anyone have used react-navigation & react-native-fcm in the same project. For navigating to particular screen on notification click I've to register FCM.ON and FCM.getInitialData on every screen. Since I'm trying to register events ion App.js & call this.props.navigation.navigate on the same place it is not working. Any solution or sample Project?https://stackoverflow.com/questions/48869820/navigating-user-on-notification-click-app-in-background-foreground
    Ravindra Joshi
    @rjravijoshi
    Hello
    I facing issues
    when notification receive that device not vibrate and not sound
    plz give me solution
    FCM.presentLocalNotification({
    vibrate: 500,
    title: notif.title,
    body: notif.body,
    priority: "high",
    sound: "default",
    show_in_foreground: true
    });
    i have set this code
    Thibault Malbranche
    @Titozzz
    Hello, I recently released my app to production, and one of my user got a weird issue, getFCMToken was null, even after the app was running for quite some time. Tried re-installing and other stuff. It was on a Huawei p10 lite. Seems to be working great for everyone else :)
    Any idea was might cause that
    Kholiavko Roman
    @kholiavko-roman
    Hi guys. Did you know, does FCM token have some validity period ?
    I have many users that has device id token, but FCM returns "error": "NotRegistered"
    @evollu
    Libin Lu
    @evollu
    @kholiavko-roman FCM token could change in certain cases. make sure you check the token frequently or listen to change event
    Kholiavko Roman
    @kholiavko-roman

    @evollu Thanks for reply!
    So I need to check if token has changed - send it to my server, yes ?
    But my users can open app very rarely, for example some users open it once at month. What I should do in this cases ?

    And did you know in what exactly cases FCM token has changes on the devices ?

    Libin Lu
    @evollu
    firebase has documentation about firebase token change.
    what I do is storing current token locally checking if token has changed every time user launch the app.
    Kholiavko Roman
    @kholiavko-roman
    Ok, thank you. I will do something like that.
    honghai78
    @honghai78
    hi @all
    On Android phone, when i restart device, all local notification are pushed at the same time. How do i fix it?
    karthikpala
    @karthikpala
    Hey @all @evollu
    In the file FIRMessaging Module.java we are registering receiver on react context and not unregistering when app is unmounted. Is that ok if don't unregister the re
    preetluv
    @preetluv
    can anyone tell about react-native-fcm with react-native-maps