Mobile App

Oh, yeah. Sorry. That was in a private thread. But the gist of it was simply to allow the creation of bot access tokens that can be used as credentials to control a bot characters. This would also be used to properly tag bot characters so that other players may know if they are interacting with a bot.

True! Always better with security instead of trust! :grin:

What would the URL be that Mucklet should redirect back to?

something like org.hackndev.ravenry://auth/callback?

Also, I think we should be going the PKCE oauth flow to make this look more proper in a native app setup.

congrats us; weā€™re approved for play store \o/

3 Likes

Back from a little vacation and looking more into this.

So good news is that now android builds are pushed to play store automatically. Bad news is that re-login somehow got very broken. Nothing more exciting than debugging authentication flows!

smh. the mobile doesnā€™t report reconnect failures on mobile. I spent hours trying to debug it and it doesnā€™t seem like thereā€™s any reasonable workaround.

Thatā€™s when flutter doesnā€™t feel fun anymore :expressionless:

Good news though is that I cleaned up the routing and navigation so itā€™s easier to work on other features.

Iā€™m back from a mini-vacation and had some stress testing (or rather, my stress-tester did).

In general the connection stability is better in the app than the website now, although there are times where WS is closed but isnā€™t reported as such. Iā€™m not quite sold on that to be a the close-wait situation because it just behaves weird (and is iOS only as far as we could repro).

I donā€™t think any backgrounding is feasible at all on iOS now, and I donā€™t want to spend time implementing it for Android alone so Iā€™ll skip that bit altogether. IMO itā€™s much neatly solved server side with server-initiated push.

@Accipiter you once told me about that hack where I can use http/rest to get the same things as the res provides. Couldnā€™t find it in the docs, but can it be used to send things (ctrl.out)? I think thereā€™s a major improvement in message delivery if you POST them instead of relying on the questionable WS semantics (also thatā€™s how discord does things and they sure know how to handle large chats).

There is no way to get events (such as ctrl.out events) using HTTP.

However, it is possible to retrieve chat log events with HTTP directly from the log service.

POST https://api.wolfery.com/api/log/events/get

Body:

{
    charId: "YOUR_CHAR_ID",
    puppeteerId: "YOUR_PUPPETEER_CHAR_ID", // May be omitted if not using a puppeteer
    startTime: 1661336415895 // Unix timestamp in milliseconds
}

Just be aware that the log service only keeps logs for a limited while.

Disclaimer: Above call has not been tested. Should work though, as long as you have an access token in your HTTP headers.

So I finally noticed the app on the Play store, congratulations!

Though I canā€™t seem to figure out what server address itā€™s looking for to connect with. Iā€™ve tried wolfery.com, api.wolfery.com, wolfery.mucklet.com, api.wolfery.com/api/, mucklet.com, all with and without a leading https:// and wss://, those without protocols all returning a 404 error, and those with explicit protocols giving a Failed host lookup leading me to believe it doesnā€™t want the protocol.

Is there an issue? Or am I just missing the correct address?

ā€¦ okay so whatā€™s the app called? Iā€™m not finding anything related to wolfery, ravenry, mucklet, or anything else I could think of on the Play Store.

I just found it under ā€˜ravenryā€™ today.

That just gets me banking apps.

https://play.google.com/store/apps/details?id=org.hackndev.ravenry

Hereā€™s a direct link

ā€œWeā€™re sorry, the requested URL was not found on this server.ā€

Hmmā€¦ maybe itā€™s invite only? I do remember sending an email to @farcaller about it a while ago.

Thatā€™d make some sense, then!

Itā€™s ravenry.vfp.in. The idea was to type something so that the play store reviewers couldnā€™t just land in the station park. The config it looks for just points back at wolfery.

Yeah, you need to email me your playstore/appstore email at ravenry-dogfood@googlegroups.com so I could add it to the list (itā€™s a closed beta so that the app wonā€™t be randomly accessible on the play store).

1 Like

Wait, thereā€™s a mobile app for Wolfery or Wolfery Forums??

Itā€™s an app for the Wolfery, not the forums. Iā€™ve been using it for a couple months, and while it lacks a bunch of stuffs it makes at least the chatting experience much better.

2 Likes

Hey hey, Iā€™ve just sent you an email. I hope I can help test the mobile app out.

Plus, I kinda need the app now in order to access Wolfery since my laptop is no longer XD