joaomgcd / JoinDesktop

A desktop app for Join built in Electron
240 stars 20 forks source link

Join not displaying notifications after phone exited local network #16

Closed novakin closed 3 years ago

novakin commented 3 years ago

Hi,

Sending push to Join-Desktop from my phone, when im not connected on the same network the clipboard is set correctly . The GCM is received by the app:

appdashboard.js:542 Received gcm {type: "GCMPush", push: {…}, senderId: "bd141210cc374bb9a86be46de6b29b30"}push: areLocalFiles: falseback: falseclipboard: "Utilisez le code"commandLine: falsedate: 1605010877690deviceId: "bd141210cc374bb9a86be46de6b29b30"dismissOnTouch: falsefind: falsefromTasker: trueid: "c8287e05-cda7-4fde-89a5-06c906938b95"localFilesChecked: truelocation: falsenext: falsepause: falseplay: falseplaypause: falserequestId: "275833a8218742fd8911c66d0b25760f"responseType: 0senderId: "91b1e8d3c2074f88a0eafed8d442c9db"title: "SteamGuard code"toTasker: false__proto__: ObjectsenderId: "bd141210cc374bb9a86be46de6b29b30"type: "GCMPush"__proto__: constructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSet

but the notification is not displayed by Join-Desktop

Then if i restart Join desktop, the notifications start appearing again

novakin commented 3 years ago

I think i managed to make it work properly.

Set up a fixed port in Settings > Companion App Port To Receive Using the same port in https://testsjoaomgcd.appspot.com/?settings Forwarding that port on my router (is this how it should work)?

novakin commented 3 years ago

Im stupid. everything is written on the official page of the app

If your phone is on a different network, your browser will be used to receive those push messages and then forward them to the app. In this case you need to keep your browser open (doesn’t need to be on the Join website).