Expo Android build not working ( Failed to retrieve Firebase Instance Id) - javascript

I'm trying for 2 days to resolve the following problem:
Project works in Expo GO but the APK bundle from Expo is not starting on physical device and throwing errors.
When I put the app on appetize.io most common error is:
Failed to retrieve Firebase Instance Id
The thing is that I don't have Firebase installed at all in my project...
I've tried multiple times for clearing the cache reinstalling the node modules nothing appear to happens...
Can someone give me direction how I can fix this?
Link to full TXT file from debugger log: https://textdoc.co/5oHKDvldXmaPLUGO

Related

VueJS / Apache Cordova application throwing errors inside of the chunk-vendor disptie VueJS application working fine

I have a VueJS project with a "fakeDB.js" file that drives the database via local storage (browser) during development. After testing this locally, everything is working and I can navigate to pages perfectly fine.
I'm now running npm run build to get the js/css files to place into a Cordova application for an Android application. After copying these files into the application and switching the VueJS application to use the SQLITE3 inside Cordova I experience issues.
My login pages work perfectly fine, I can view the dashboard with all the jobs inside it but if I click into a job it throws a white screen.
After hooking up adb debug, all I can see is an error in the chunk-vendor file that npm run build created which, AFAIK, contains the vendor packaging.
The error message I get is:
"TypeError: Cannot read property 'substr' of undefined", source: file:///android_asset/www/js/chunk-vendors.f024a0c1.js (7)
Of course, this file is obfuscated and minified so Line 7 is VueJS 2.6.12.
I have inherited this application with no previous experience so I'm taking an educated guess around "chunk-vendor" that I perhaps need to upgrade the depedencies surrounding this application to get past this issue but I'm unsure how I can debug this further inside of android studio.
How can I go about solving this issue? Is there a way to upgrade safely inside of npm?
Update: I have ran a npm update and I'm now on VueJS 2.7.10 but still getting the same issue

Expo eject from managed to bare not working

I created an app with expo using the managed workflow, but I now want to eject it so I can build an IPA for IOS. After running expo eject and following the prompts for pod install, when I try to build the app and view it on the simulator in xCode, I get stuck on the splash screen which results in a very long list of errors (attached the relevant looking one below).
Have I missed a step here? I tried looking on the expo documentation but it’s very lacking in using the eject command. Is there a step or something I’m meant to modify after the eject has occurred?
Error: Exception NSException * "expo-updates must be configured with a valid update URL or scope key."
So I resolved this by following these steps after I ejected: https://docs.expo.io/bare/installing-updates/
And also adding the below to the Expo.plist file in the MyApp/Supporting folder with the below:
<key>EXUpdatesURL</key>
<string>https://example.com</string>

Getting an error when running react native app

I am encountering an issue when try to run my app on my local machine. When I run react-native run-android I am confronted with this error and I am not sure what I can do. I have made sure that I have full access rights to all files etc but nothing seems to work. This error stops me from loading my app onto my AVD:
Please help me!
Did you follow the Android setup instructions from React Native? Have you tried to delete the directory in the error message? Try those first and try again 🤓

Electron-Forge unable to publish to nucleus or github

As the title states, currently im trying to publish an electron app to either github or my nucleus server and am unable to and have been plagued by errors for the last 8 hours. Currently the error im getting is
"could not find a publish target with the name: #electron-forge/publisher-github"
I get the same thing except with "publisher-nucleus" when i attempt to use my nucleus server. I have attempted reinstalling electron and electron-forge, creating a new project with init and no progress has been made.
any help is appreciated.

Error: Text data outside of root node - when installing cordova plugin

I sometimes get an error when trying to install any cordova plugin ionic (usually after around 6pm GMT+0).
These are with plugins from both npm and GitHub, and the error I get is:
Error: Text data outside of root node.
Line: 155
Column: 1
Char: "
The install command will be something along the lines of
ionic cordova plugin add cordova-plugin-network-information#1.3.1
It really does not matter what plugin it is, because as mentioned it happens for a number of them, they all get the same error. It will work perfectly ok in the morning, and then suddenly it shuts down.
I have tried on multiple computers, on multiple separate internet connections (from the UK), and I even have a script that reruns the commands if they fail, so it will attempt to install around 20 plugins continuously until they get installed for however long I run my script. I ran it for an hour constantly, and not a single one was installed.
I also checked the status of npm and GitHub if they were perhaps down, but they seemed to be up and running as usual...
Any ideas would be greatly appreciated
* Based on my comment which helped the asker, and which I was asked to publish as an answer:*
I don't know ionic at all, but I do have some experience with Cordova and never had any issues installing plugins, even on a corporate network.
Try to install the plugin without ionic.
cordova plugin add my.plugin.name
This error can be caused by an invalid AndroidManifest.xml file. After installing a plugin using ionic corvoda, my AndroidManifest.xml got a syntax error and I had this issue when building the APK.
After fixing the syntax error, the build finished successfully.

Categories

Resources