How to resolve firbase error - MusicModule.java - react-native

Hello I have react native app and I have using firebase but i have received a mail from firebase crash error like this :- (MusicModule.java line 108
com.guichaguri.trackplayer.module.MusicModule.waitForConnection)
I don't know what is the issue and how can I resolve this issue can anyone have a solution for this firebase crash.
Here is the screenshot:-
enter image description here

Related

How to setup feathers offline in react native

I would like to know if anyone successfully set up feathers offline in react native. Right now I am having an issue whenever I call "owndataWrapper" i.e
import { owndataWrapper } from '#feathersjs-offline/client';
owndataWrapper(app, '/messages', {});
The error says Unable to resolve module path in /node-localstorage/LocalStorage.js . . so I ended up installing these packages.
assert, constants, events, path, stream, and fs
and got a new error.
here is the error.
https://github.com/feathersjs-offline/owndata-ownnet/issues/46
My guess is probably due to the fs package, it has a security issue.
Any idea? Thanks
After digging further it turns out it only works on web apps. It uses packages that does not exists in react native such as path, process, fs, and so on. I tried using
https://github.com/parshap/node-libs-react-native
and
https://github.com/staltz/react-native-process-shim
but got stuck and continuesly having error on fs. . in conclusion I need to drop the ball for now since this feathers offline is not yet fully created for react native.

getDevicePushTokenAsync error on bare workflow

I implemented push notification on managed workflow which is working properly but when I eject from managed workflow, I am getting error at line
pushToken = (await Notifications.getExpoPushTokenAsync()).data;
Error: Encountered an exception while calling native method: Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager: Default FirebaseApp is not initialized in this process com.luciajane.taskuser. Make sure to call FirebaseApp.initializeApp(Context) first.
I passed experienceId but still getting error?
pushToken = (await Notifications.getExpoPushTokenAsync({experienceId: "#luciajane/task-user"})).data;
I found reason. You have to setup by making new project on firebase then download google-services.json file and add that to your expo project. As expo mentioned Firebase Cloud Messaging is required for all managed and bare workflow Android apps made with Expo.For setup follow this link https://docs.expo.io/push-notifications/using-fcm/

React Native Expo "AppLoading threw an unexpected error when loading" error

I have a React Native project with Expo, I installed Expo client on my Android phone. It used to work well so far. But even though I didn't change any code, I now get the following error when I scan the QR code from my phone. This error is shown on terminal and phone screen keeps blank.
AppLoading threw an unexpected error when loading:
value#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:1051:3370
value#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:1051:12254
renderCard#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:1051:2218
map#[native code]
value#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:1051:5886
jr#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:48721
na#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:72881
ra#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:73371
Oa#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:80972
Wa#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:80310
Aa#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:79323
sa#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:78013
xr#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:92:42191
xr#[native code]
w#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:993:931
onFinish#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:993:476
/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:581:1090
p#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:151:423
/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:151:1740
p#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:151:423
n#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:151:898
/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:151:1047
f#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:114:155
/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:114:882
y#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:119:657
C#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:119:1021
callImmediates#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:119:3216
callImmediates#[native code]
value#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:31:2873
/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:31:1264
value#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:31:2565
value#/data/user/0/host.exp.exponent/files/33.0.0/cached-bundle-experience-%40sulun%2Fnoyz-alpha1753997165-33.0.0:31:1234
value#[native code]
value#[native code]
It works seamlessly on another phone. How can I solve this error?
It again works well after resetting the Expo client on my phone. So,
Go to Settings -> Installed apps -> Expo
Clear all data
I fixed this issue by closing and reloading the Expo app on my phone.

react-native-signature-canvas not working properly in expo IOS

react-native-signature-canvas is not working properly in Expo, it throws an error "Unable to open URL".
I am using package of react-native-signature-canvas signature using env Expo.
What is going on here? I just simply copy and paste this code from React Native Signature Component based Canvas for Android && IOS && expo.
I used the same code example provided on above page.
Error Message:
RemoteConsole.js:80 Possible Unhandled Promise Rejection (id: 0):
Error: Unable to open URL: ReactABI32_0_0-js-navigation://postMessage?data%253Aimage%252Fpng%253Bbase64%252CiVBORw0KGgoAAAANSUhEUgAAAuQAAAVWCAYAAAD ... YII%253D
I solved this error, this error throws because of remote debugger is on after i stop remote debugging it works fine.

react-native response error code 500

I'm encountering a strange issue, when I use react-native run-android command on the template project which I've created using react-native init I get the following the red error page on the device:
you should open your command line and see what error it gives to you. maybe it was syntax error or problem in your packages.you can use this link