Comments (17)
I managed to replicate the error, I will work on a fix.
from rocket.chat.reactnative.
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.
@GleidsonDaniel Thank you very much, everything works great)
from rocket.chat.reactnative.
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.
from rocket.chat.reactnative.
Which setting? video conference?
from rocket.chat.reactnative.
No, where change settings Push fcm legacy API to HTTP v1 API
from rocket.chat.reactnative.
I have the same problem when using Google FCM API Credentials
from rocket.chat.reactnative.
I have the same problem when using Google FCM API Credentials
And how did you fix it?
from rocket.chat.reactnative.
And how did you fix it?
Back to the old API
from rocket.chat.reactnative.
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.
from rocket.chat.reactnative.
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.
@diegolmello I will check it
from rocket.chat.reactnative.
@diegolmello
In the version from the GooglePlay, notifications do not arrive at all
from rocket.chat.reactnative.
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.
You can also create two users on https://open.rocket.chat and create a thread between them on #general
from rocket.chat.reactnative.
@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)
- When the network is weak, the webSocket does not automatically reconnect, and gets stuck in Updating HOT 1
- IOS open file with error "Error while downloading file" HOT 3
- Marking read messages on android app does nothing HOT 1
- List of pinned messages includes message editing history HOT 3
- Problem with setting up the project image picker issue HOT 4
- App Crash on Android 12+ with "react-native-mmkv-storage": "^0.8.0" HOT 4
- How to define a default server to establish an automatic connection when the application starts? HOT 2
- Merge 4.5.0 into Single-Server Branch.
- White screen at startup HOT 1
- OAuth Login not working with 6.10.0 HOT 1
- Broken link to Mobile App White Labeling in README.md
- Global search is missing
- Excuse me, which file do I need to modify to change the Android app's packaged server address to my own server address? HOT 4
- Command PhaseScriptExecution failed with a nonzero exit code / env: bash: No such file or directory
- App is asking for some chats for E2EE key even if E2EE is disabled on server HOT 13
- the single-server branch can't change language HOT 3
- Cannot update a record with pending changes HOT 4
- Last word of specific message not shown on android HOT 2
- The application crashes when I try to share a file from WhatsApp or another application HOT 3
- Push notifications not working - communicate with directly google for push notification for while labeling app without any gateway?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocket.chat.reactnative.