Giter Club home page Giter Club logo

Comments (17)

GleidsonDaniel avatar GleidsonDaniel commented on August 28, 2024 3

I managed to replicate the error, I will work on a fix.

from rocket.chat.reactnative.

GleidsonDaniel avatar GleidsonDaniel commented on August 28, 2024 1

#5753

The fix was updated in the single server branch, I will close the issue for now.
If the error occurs again, please report it here.

from rocket.chat.reactnative.

Den4ik92 avatar Den4ik92 commented on August 28, 2024 1

@GleidsonDaniel Thank you very much, everything works great)

from rocket.chat.reactnative.

GleidsonDaniel avatar GleidsonDaniel commented on August 28, 2024

I tested it here and couldn't reproduce it.
Can you reproduce it by building directly from the single server branch? Or just from your custom app?

from rocket.chat.reactnative.

Den4ik92 avatar Den4ik92 commented on August 28, 2024

from rocket.chat.reactnative.

GleidsonDaniel avatar GleidsonDaniel commented on August 28, 2024

Which setting? video conference?

from rocket.chat.reactnative.

mmaxgit avatar mmaxgit commented on August 28, 2024

No, where change settings Push fcm legacy API to HTTP v1 API

from rocket.chat.reactnative.

sanyappc avatar sanyappc commented on August 28, 2024

I have the same problem when using Google FCM API Credentials

from rocket.chat.reactnative.

Denis-Kirichenko avatar Denis-Kirichenko commented on August 28, 2024

I have the same problem when using Google FCM API Credentials

And how did you fix it?

from rocket.chat.reactnative.

sanyappc avatar sanyappc commented on August 28, 2024

And how did you fix it?

Back to the old API

from rocket.chat.reactnative.

AndrewChau avatar AndrewChau commented on August 28, 2024

Same issue for me. The "legacy notification provider" is officially downgraded as of today - https://firebase.google.com/support/faq#fcm-23-deprecation

Some references:
wix/react-native-notifications#835
wix/react-native-notifications#951

Stack trace:

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4164)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4322)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2685)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8919)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.os.Bundle.clone()' on a null object reference
  at com.wix.reactnativenotifications.core.notification.PushNotificationProps.asBundle (PushNotificationProps.java:26)
  at chat.rocket.reactnative.CustomPushNotification.onOpened (CustomPushNotification.java:111)
  at com.wix.reactnativenotifications.RNNotificationsPackage.callOnOpenedIfNeed (RNNotificationsPackage.java:108)
  at com.wix.reactnativenotifications.RNNotificationsPackage.onActivityCreated (RNNotificationsPackage.java:65)
  at android.app.Application.dispatchActivityCreated (Application.java:387)
  at android.app.Activity.dispatchActivityCreated (Activity.java:1460)
  at android.app.Activity.onCreate (Activity.java:1770)
  at androidx.core.app.ComponentActivity.onCreate (ComponentActivity.java:86)
  at androidx.activity.ComponentActivity.onCreate (ComponentActivity.java:353)
  at androidx.fragment.app.FragmentActivity.onCreate (FragmentActivity.java:249)
  at com.facebook.react.ReactActivity.onCreate (ReactActivity.java:45)
  at chat.rocket.reactnative.MainActivity.onCreate (MainActivity.java:20)
  at android.app.Activity.performCreate (Activity.java:8975)
  at android.app.Activity.performCreate (Activity.java:8944)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1456)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4146)

Side note: I notice that the notification has some visual differences with the legacy API notification. The legacy notifications also appear as a toast message at the top when the notification first arrives but the new one doesn't.

Screenshot_20240620_014938_Gmail

from rocket.chat.reactnative.

diegolmello avatar diegolmello commented on August 28, 2024

Does this happen on Rocket.Chat app from Google Play?
If it doesn't happen, it's a configuration issue on your side.

Pay attention to Site_Url setting on admin panel.
Make sure it's the correct url.

from rocket.chat.reactnative.

Den4ik92 avatar Den4ik92 commented on August 28, 2024

@diegolmello I will check it

from rocket.chat.reactnative.

Den4ik92 avatar Den4ik92 commented on August 28, 2024

@diegolmello
In the version from the GooglePlay, notifications do not arrive at all

from rocket.chat.reactnative.

diegolmello avatar diegolmello commented on August 28, 2024

Are you trying to send push notifications from your whitelabel workspace to our official app or you signed in on our cloud?
You'll have to use our gateway in order to use our official app's push notifications.

from rocket.chat.reactnative.

diegolmello avatar diegolmello commented on August 28, 2024

You can also create two users on https://open.rocket.chat and create a thread between them on #general

from rocket.chat.reactnative.

Den4ik92 avatar Den4ik92 commented on August 28, 2024

@diegolmello Got it, then it’s clear why there are no push notifications in the official application) I will continue to look for a solution.

from rocket.chat.reactnative.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.