#Laravel Reverb
1 messages ยท Page 1 of 1 (latest)
It looks like a secret is missing
The secret is there.....................
This product is showing to not be worth the investment. This product is not aiding, its hindering
The site works perfectly fine with Expo
You should not be charging for development.... this is pre-release quallity
This is just a raw site. nothing installed but the base and reverb to talk to the backend. It compains about pusher. my env has the reverb settings.
alright - let's chat here a bit - I am with you. when you saw a rawdog site I am assuming you mean just a fresh laravel app?
yes
bare-bones
When I used to work at a certain place, we always called boilerplate raw-dwag
yup - gotcha - so my guess you aren't seeing any errors right?
correct. that was my fist issue, then I was informed how to use the android studio to get the actual errors. When I run a dump or dd it never shows because it won't get past the screenshot above
I have never build a mobile app. Just phat and thin (desktop and web)
ok, let's see how much I can diagnose over discord ๐
good luck. I have spent the past week
did you run npm install and npm run build BEFORE running native:install --force?
Last night I tried expo for the first time because I gave up and started right up
yes
what are your env keys?
I dont need the values just the keys - for reverb
one sec
is that ALL?
do you also have these? VITE_APP_NAME="${APP_NAME}"
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
yeah, there is vite
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
REVERB_APP_ID=
REVERB_APP_KEY=
REVERB_APP_SECRET=
REVERB_HOST=ws.eso-labs.dev
REVERB_PORT=443
REVERB_SCHEME="https"
this is what I have running locally - and in a production app
so - let's try the following
npm run build && php artisan native:install --force
same issue
you skipped ahead ๐
before you run native:run android --build=debug I want you to open up in android studio native:open
and go to the logcat pane
k
when you run you will see some logs probably related to this issue but I wanna see some of the logs right before that
its open.
running
I am going to do a git pull and pull a untouched version of the site or should we just stay on the raw-dawg
native:run android --build=debug
what do you have in your resources/js/app.js ?
I have to reboot. my folder is locked
one sec, I will be right back. I think there too much installed. Or, its a Windows issue
I almost went with a mac mini - glad I got the studio
Yeah, mini was the only thing available.
I just bought that for IOS
shouldn't matter but good to know
I usually develop on Ubuntu
I use windows and my user terminal and vscode or visual studio
I used to use eclipse
no wonder you're agitated ๐
you have an android phone right
I have both
IOS and Android. I bought those last week to do the mobile development
iPhoen 16 and Androd 9
keep your fingers crossed. Oh, to note, I have tried this on my KaliLinux system
Yeah, I went over that. Thast is what made me make the decission to use NativePHP
its compiling
its still going
launching
wont install. I will try again
import '../css/app.css';
import { createInertiaApp } from '@inertiajs/react';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { createRoot } from 'react-dom/client';
import { initializeTheme } from './hooks/use-appearance';
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
createInertiaApp({
title: (title) => ${title} - ${appName},
resolve: (name) => resolvePageComponent(./pages/${name}.tsx, import.meta.glob('./pages/**/*.tsx')),
setup({ el, App, props }) {
const root = createRoot(el);
root.render(<App {...props} />);
},
progress: {
color: '#4B5563',
},
});
// This will set light / dark mode on load...
initializeTheme();
that is my app
gradle.bat is not recognized -
that is the first time I seen that
yeah - this is starting to look like some sort of environment issue - if you open the app in android studio and run it from there at this point what do you get
let me try
in this box on the right put project:mine
that is what I am using as well
its compiling still
If we go to the Mac Mini, the error is the same. but I don't like remoting into it
but it takes about 15 minutes to compile.
that doesnt seem right to me either
do I need gradle_home in my env
you need to be able to run jave --version and get a non error
and adb devices which is obviously working
java**
et ANDROID_HOME=C:\Users\yourname\AppData\Local\Android\Sdk
set PATH=%PATH%;%JAVA_HOME%\bin;%ANDROID_HOME%\platform-tools
This isn't required if JAVA_HOME is already set in the Windows Env Variables
set JAVA_HOME=C:\Program Files\Microsoft\jdk-17.0.8.7-hotspot
java runs no issues
so is there a gradle.bat in the root of the project folder
not the laravel folder - should be laravel/nativephp/android
go into nativephp
on sec, vscode is frozen
it is a cold world
I have been working on this system for years.
it is
I re-ran the install
it's reloading
try this... Add the file location to environment variable PATH
C:\Users\user\AppData\Local\Android\Sdk\tools\templates\gradle\wrapper
lololol
I added as a path to the system
I think we should have another plan - $4k/year but you get a new macbook pro
I think I am going to give away the mini. like a said, I just bought it to run the IOS
the mac store only carries air and mini but they are limited
I sure hope so
I have product launch in a few weeks. may have to dow a PWA and configure an installer
so, this is interesting. I am using java 24
Android Gradle plugin requires Java 17 to run
Can confirm both iOS & Android builds are pretty quick on my MacBook m2
so - on android studio we need to see if you already have 17 installed - I think you do we just gotta swap
yeah, my IPS will not support it do to the security issues
one sec
openeing android studio
I know how painful that is right now
if we can get a solid for this, I will write a powershell script to install this for people
pain. I want to drink draino
I would cheers with ya - I know the feeling
one sec
In Android Studio Go to File โ settings โ Build, Execution, Deployment โ Build Tools โ Gradle โ Gradle JDK
The PWA was the original board approved way, then the new board member wanted it all to be on a mobile app
we can do it I have faith
oh. that is where it took me
Yeah, I have jkd 24. 17 wont pass the security check
on my ips
I will try it again. but, if it fails the security team will fail this
24 should work though
yeah, 17 is failing due to the secuirty vulnrability with TLS
SCAP will not approve it
24 is installed, let me reboot.
sometimes I have tro deltee the emulator and create a new one.
so, that may be an issue?
btrb
its not making it to the emulator yet - but I have had that issue before too
look in your gradle.properties - what do you have there?
let me look
it was working yesterday but just getteing to the pusher error
Project-wide Gradle settings.
IDE (e.g. Android Studio) users:
Gradle settings configured through the IDE will override
any settings specified in this file.
For more details on how to configure your build environment visit
http://www.gradle.org/docs/current/userguide/build_environment.html
Specifies the JVM arguments used for the daemon process.
The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
When configured, Gradle will run in incubating parallel mode.
This option should only be used with decoupled projects. For more details, visit
https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
org.gradle.parallel=true
AndroidX package structure to make it clearer which packages are bundled with the
Android operating system, and which are packaged with your app's APK
https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
Enables namespacing of each library's R class so that its R class includes only the
resources declared in the library itself and none from the library's dependencies,
thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.javaCompile.suppressSourceTargetDeprecationWarning=true
last time I had to add the location of the android appjk but that was the local.properties
when does the mac come in ๐
whoa where do you live
wow!
starting grandel...
now it's a permissions issue. let me run as administrator
here is my local.properties: ## This file must NOT be checked into Version Control Systems,
as it contains information specific to your local configuration.
Location of the SDK. This is only used by Gradle.
For customization when using a Version Control System, please read the
header note.
#Tue Jun 17 15:51:47 MST 2025
sdk.dir=C:\Users\rsext\AppData\Local\Android\Sdk
gradle.properties
I gave those to you as well
Project-wide Gradle settings.
IDE (e.g. Android Studio) users:
Gradle settings configured through the IDE will override
any settings specified in this file.
For more details on how to configure your build environment visit
http://www.gradle.org/docs/current/userguide/build_environment.html
Specifies the JVM arguments used for the daemon process.
The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
When configured, Gradle will run in incubating parallel mode.
This option should only be used with decoupled projects. For more details, visit
https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
org.gradle.parallel=true
AndroidX package structure to make it clearer which packages are bundled with the
Android operating system, and which are packaged with your app's APK
https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
Enables namespacing of each library's R class so that its R class includes only the
resources declared in the library itself and none from the library's dependencies,
thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.javaCompile.suppressSourceTargetDeprecationWarning=true
gotta have 17+
I don't have it installed. Never installed it
I don't know where 11 camefrom
I found the config my env for user. it appears by log it was installed by EXPO
I just changed it
hmm
you can see it here: #1384721341533655060 message
I have updated it
its compiling
this is the new version
I updated the user variable to use 24
what is installed
it works?!?!
still compiling
I would say if it fails at reverb/echo - lets remove that to get a wreal rawdawg out
there is a cache somewhere
do native:install --force again
just to clear it all out
then re-run
changing the config and running as adminstrator, is not working
its almost done compiling
installing
there it goes
lets see if it errors
.......................................
Well, I got the dashboard.
dashboard?
but I do not see it connecting on the reverb server. at least we are away from the scret issue
yeah
ok ok ok
to the dashboard. just by having just this: REVERB_HOST=wss.eso-labs.dev
REVERB_PORT=443
REVERB_SCHEME=https
but it s not connecting the the reverb server.
but its not erroring
wss.eso-labs.dev is closed to the public
that might be why?
Do I need that open? I would assume the Private network would suffice
let me open it up.
lets see
your device even an emulator is "public" in that regard
testing.
Its not locla
ok
its on another server that scales
kk
that is the screenshot above
gotcha
that reverb server can support 100k
nice
so - here's the deal...
I am at an airport now the flight was delayed due to weather
so I was able to hop in here to help a bit
but I gotta bounce because were about to head off
would you do me a HUGE favor ?
You have helped out a lot! Thank you for that. I will try to get this working. I will spend my day off trying to conver this
Yes
what do you need
would you mind terribly letting people know in the channels where you posted how shitty this is that it's at least "not that bad"?
๐
lol
nah - you certainly got my attention
we really do care - we really do believe this is and will be going forward the best way to build mobile apps if you're a php developer
I have it public, but its not connecting. I do believe you care about your product like I care about mine.
This is just the launch. Like when I started with laravel 3
I agree. production and programming do not go hand in hand
it's a hard knock life
i deleted the message. I will write something better
take care. safe travels. thank you
in chrome you can goto chrome://inspect
with an emulator running you can see it load up
might help debugging
ciao
Thank you. I have spent way too much time on this. everytime I install pusher, this happens. if pusher is not installed, no issues.
This is not working. They keys are include in the .env, no matter how much I keep tyring. I cannot skin the cat.
So, after manually altering pusher, I got it to work. However, all my internall api calls that go to the api domain are not happening. they call the 127.0.0.1.
It will not connect to the reverb server. I have the reverb server open to the public, it does not talk to the backend.
it doesn't even try to make the connection
Wait, pusher or echo?
echo installs pusher
Yup
import Echo from 'laravel-echo';
import Pusher from 'pusher-js';
window.Pusher = Pusher;
window.Echo = new Echo({
broadcaster: 'reverb',
key: import.meta.env.VITE_REVERB_APP_KEY,
wsHost: import.meta.env.VITE_REVERB_HOST,
wsPort: import.meta.env.VITE_REVERB_PORT ?? 80,
wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
enabledTransports: ['ws', 'wss'],
});
Thereโs something with your config somewhere itโs gonna drive me nuts
We decided it would be best to hire a developer that does android and ios and go a differnet route. We had an meeting about this about 1 hour ago
Thatโs unfortunate
I am using typescript.
import '../css/app.css';
import { createInertiaApp } from '@inertiajs/react';
import { configureEcho } from '@laravel/echo-react';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { createRoot } from 'react-dom/client';
import { initializeTheme } from './hooks/use-appearance';
import { NotificationProvider } from './components/notification-context';
configureEcho({
broadcaster: 'reverb',
});
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
createInertiaApp({
title: (title) => ${title} - ${appName},
resolve: (name) => resolvePageComponent(./pages/${name}.tsx, import.meta.glob('./pages/**/*.tsx')),
setup({ el, App, props }) {
el.removeAttribute('data-page')
const root = createRoot(el);
root.render(
<App {...props} />
);
},
progress: {
color: '#4B5563',
},
});
// This will set light / dark mode on load...
initializeTheme();
Works in the browser?
The app I built for the web that works as a PWA is very, very enterprise grade. each part of the app has different systemst that run it
The web app works everywhere with no issues.
It works in chrome, edge, firefox, and safari
the web app that I built is a API webapp. so, converting it seemed pretty straight forward
all the backend calls are to an api interface.
I appreciate your help! I have to cancel the subscription. I appreciate you again, and your help! I will depart now. take care