#Laravel Reverb

1 messages ยท Page 1 of 1 (latest)

strong scroll
#

I get a pusher error when I install broadcasting.

#

This is a raw laravel build. Windows 11 Ent. PHP 8.4

modern badger
#

It looks like a secret is missing

strong scroll
#

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

strong scroll
#

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.

trail forge
strong scroll
#

yes

#

bare-bones

#

When I used to work at a certain place, we always called boilerplate raw-dwag

trail forge
#

yup - gotcha - so my guess you aren't seeing any errors right?

strong scroll
#

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)

trail forge
#

ok, let's see how much I can diagnose over discord ๐Ÿ˜…

strong scroll
#

good luck. I have spent the past week

trail forge
#

did you run npm install and npm run build BEFORE running native:install --force?

strong scroll
#

Last night I tried expo for the first time because I gave up and started right up

#

yes

trail forge
#

what are your env keys?

strong scroll
#

which set?

#

reverb

#

keys

trail forge
#

I dont need the values just the keys - for reverb

strong scroll
#

one sec

trail forge
#

is that ALL?

strong scroll
#

thats all the reverb keys

#

everything for reverb in general

trail forge
#

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}"

strong scroll
#

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}"

trail forge
#

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

strong scroll
#

let me try

#

lets see if that makes a diff

trail forge
#

so - let's try the following
npm run build && php artisan native:install --force

strong scroll
#

same issue

trail forge
#

you skipped ahead ๐Ÿ˜„

strong scroll
#

lols

#

sorry, keyboard is chatttering

trail forge
#

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

strong scroll
#

k

trail forge
#

when you run you will see some logs probably related to this issue but I wanna see some of the logs right before that

strong scroll
#

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

trail forge
#

what do you have in your resources/js/app.js ?

strong scroll
#

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

trail forge
#

I almost went with a mac mini - glad I got the studio

strong scroll
#

Yeah, mini was the only thing available.

trail forge
#

you're on windows....

#

interesting, ok

strong scroll
#

I just bought that for IOS

trail forge
#

shouldn't matter but good to know

strong scroll
#

I usually develop on Ubuntu

#

I use windows and my user terminal and vscode or visual studio

#

I used to use eclipse

trail forge
#

no wonder you're agitated ๐Ÿ˜‚

strong scroll
#

LMAO

#

back

trail forge
#

you have an android phone right

strong scroll
#

I have both

#

IOS and Android. I bought those last week to do the mobile development

#

iPhoen 16 and Androd 9

trail forge
strong scroll
#

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

trail forge
#

gradle.bat is not recognized -

strong scroll
#

that is the first time I seen that

trail forge
#

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

strong scroll
#

let me try

trail forge
#

in this box on the right put project:mine

strong scroll
#

that is what I am using as well

trail forge
#

that will filter what you see so its not chaos

#

ok

strong scroll
#

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.

trail forge
#

that doesnt seem right to me either

strong scroll
#

do I need gradle_home in my env

trail forge
#

you need to be able to run jave --version and get a non error

#

and adb devices which is obviously working

#

java**

strong scroll
#

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

trail forge
#

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

strong scroll
#

on sec, vscode is frozen

trail forge
#

it is a cold world

strong scroll
#

I have been working on this system for years.

#

it is

#

I re-ran the install

#

it's reloading

trail forge
#

try this... Add the file location to environment variable PATH

C:\Users\user\AppData\Local\Android\Sdk\tools\templates\gradle\wrapper

strong scroll
#

as apth

#

as a pth

#

arg, this keyboard

#

looks like a bestbuy trip today

trail forge
#

lololol

strong scroll
#

I added as a path to the system

trail forge
#

I think we should have another plan - $4k/year but you get a new macbook pro

strong scroll
#

I ordered a mac pro fully loaded

#

that is to replace the mini

trail forge
#

nice!!!!

#

when does it come in?

#

all of these issue will melt away

strong scroll
#

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

trail forge
#

oooh

#

whats the product?

strong scroll
#

so, this is interesting. I am using java 24

#

Android Gradle plugin requires Java 17 to run

modern badger
#

Can confirm both iOS & Android builds are pretty quick on my MacBook m2

trail forge
#

so - on android studio we need to see if you already have 17 installed - I think you do we just gotta swap

strong scroll
#

No, just java 24 jkd

#

no 17

#

do I need it/

#

it might not pass my ips

trail forge
#

if you go to settings and search for gradle

#

in android studio

strong scroll
#

yeah, my IPS will not support it do to the security issues

#

one sec

#

openeing android studio

trail forge
#

I know how painful that is right now

strong scroll
#

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

trail forge
#

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

strong scroll
#

The PWA was the original board approved way, then the new board member wanted it all to be on a mobile app

trail forge
#

we can do it I have faith

strong scroll
#

I lost that when my ex lied and cheated on me

#

I don't have JDK

trail forge
#

type jdk in the search in settings

#

change gradle jdk location

#

maybe

strong scroll
#

found it

#

plugins

trail forge
#

I dont think so

#

not a plugin

#

it does need to be installed on the machine

strong scroll
#

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

trail forge
#

24 should work though

strong scroll
#

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

trail forge
#

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?

strong scroll
#

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

trail forge
#

when does the mac come in ๐Ÿ˜…

strong scroll
#

6-8 weeks

#

I am not a mac fan. I hate the feel of it. I grew up on Unix

trail forge
#

whoa where do you live

strong scroll
#

I learned ANSI C in 1992 and built tic-tak-toe when I was 12

#

on Unix

trail forge
#

wow!

strong scroll
#

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

trail forge
#

gradle.properties

strong scroll
#

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

trail forge
#

sorry - hard to read

#

what do you have set for org.gradle.java.home

strong scroll
#

So, it appears there is 11

#

no worries.

trail forge
#

gotta have 17+

strong scroll
#

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

trail forge
#

hmm

strong scroll
#

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

trail forge
#

it works?!?!

strong scroll
#

still compiling

trail forge
#

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

strong scroll
#

changing the config and running as adminstrator, is not working

#

its almost done compiling

#

installing

#

there it goes

#

lets see if it errors

trail forge
#

.......................................

strong scroll
#

Well, I got the dashboard.

trail forge
#

dashboard?

strong scroll
#

but I do not see it connecting on the reverb server. at least we are away from the scret issue

#

yeah

trail forge
#

ok ok ok

strong scroll
#

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.

trail forge
#

but its not erroring

strong scroll
#

wss.eso-labs.dev is closed to the public

trail forge
#

that might be why?

strong scroll
#

Do I need that open? I would assume the Private network would suffice

#

let me open it up.

#

lets see

trail forge
#

your device even an emulator is "public" in that regard

strong scroll
#

testing.

trail forge
#

that reverb server has to be public

#

not local

strong scroll
#

Its not locla

trail forge
#

ok

strong scroll
#

its on another server that scales

trail forge
#

kk

strong scroll
#

that is the screenshot above

trail forge
#

gotcha

strong scroll
#

that reverb server can support 100k

trail forge
#

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 ?

strong scroll
#

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

trail forge
#

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"?

#

๐Ÿ˜„

strong scroll
#

Sorry, I didn't mean to come across as a shitty product.

#

I can update it

trail forge
#

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

strong scroll
#

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

trail forge
#

we know we have some more work to do - and we will get there

#

yeah - me too!

strong scroll
#

I agree. production and programming do not go hand in hand

trail forge
#

it's a hard knock life

strong scroll
#

i deleted the message. I will write something better

trail forge
#

gotta jet - but I will check in on you in a bit

#

btw

strong scroll
#

take care. safe travels. thank you

trail forge
#

in chrome you can goto chrome://inspect

#

with an emulator running you can see it load up

#

might help debugging

#

ciao

strong scroll
#

Uncaught You must pass your app key when you instantiate Pusher.

strong scroll
#

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

trail forge
#

Can you share the repo with me?

#

Whatโ€™s in your app.js?

strong scroll
#

No, I cannot. You have to be employed

#

We have canned the project

trail forge
#

Wait, pusher or echo?

strong scroll
#

echo installs pusher

trail forge
#

Yup

strong scroll
#

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'],
});

trail forge
#

Thereโ€™s something with your config somewhere itโ€™s gonna drive me nuts

strong scroll
#

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

trail forge
#

Thatโ€™s unfortunate

strong scroll
#

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();

trail forge
#

Works in the browser?

strong scroll
#

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