Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iMessage listening issue on macOS Mojave #5

Closed
Kas-tle opened this issue Aug 30, 2021 · 13 comments
Closed

iMessage listening issue on macOS Mojave #5

Kas-tle opened this issue Aug 30, 2021 · 13 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Kas-tle
Copy link

Kas-tle commented Aug 30, 2021

Is this supposed to be compatable with macOS Mojave? I am currently running 10.14.6 and while the application claims it successfully syncs with iMessage, nothing appears to be copied to the clipboard.

@itsthisjustin
Copy link
Contributor

Have not tested personally on Mohave so I'll try to get a hold of a machine.

@alectrocute
Copy link
Contributor

@Kas-tle macOS 10.14.6 should be supported. Would you mind being more specific as to the problems you're running into? Is it detecting OTP's but failing to actually copy it into your clipboard?

@Kas-tle
Copy link
Author

Kas-tle commented Aug 30, 2021

It claims to have synced the OTP, but on pasting the clipboard simply contains whatever previous string I had on it (never an OTP). The app does launch fine both manually and at login.

@Kas-tle
Copy link
Author

Kas-tle commented Aug 30, 2021

I also should note I attempted to run manually with npm so I could see if that would give me any debugging output, but it failed on account of missing the header Sound.h, so I could not test it. I suspect it this is included in a more recent version of XCode command line tools than Mojave supports.

@alectrocute
Copy link
Contributor

@Kas-tle Thanks. Does the tray icon menu reflect any actual OTP's, for example: 123456 (Google)?

@Kas-tle
Copy link
Author

Kas-tle commented Aug 30, 2021

I attempted a few times and the notification icon via iMessage came through, but at no point did the tray menu actually refer to an OTP.

@alectrocute
Copy link
Contributor

alectrocute commented Sep 3, 2021

@Kas-tle Is there any possible way to get Ohtipi up and running in development (clone this repo, etc. like you previously mentioned trying)? Try downloading nvm and toggling between node versions 12 and 14 to see if that helps the install process.

Any error messages, etc. are critical to get here to fix the issue. Since Ohtipi doesn't send anything back to us, I don't have any remote error reporting to rely on (eg. Sentry).

EDIT – I've managed to spin up a Mojave VM on my Big Sur MacBook, but can't get iMessage activated. Can't really proceed further without getting a physical Mojave machine.

@alectrocute alectrocute added the bug Something isn't working label Sep 3, 2021
@alectrocute alectrocute changed the title Supported MacOS Versions iMessage listening issue on macOS Mojave Sep 3, 2021
@alectrocute alectrocute added the question Further information is requested label Sep 3, 2021
@Kas-tle
Copy link
Author

Kas-tle commented Sep 4, 2021

Due to codebytere/node-mac-permissions#12 I had to use a deprecated version of node-mac-permissions (2.1.2). I granted terminal full disk access. On running npm run dev and performing the same test with regards to an OTP, there is no output in the terminal. Resyncing also does not provide any terminal output. Is there any form of additional logging I could enable?

@alectrocute
Copy link
Contributor

alectrocute commented Sep 30, 2021

@Kas-tle Try setting dev.debug to true here: https://github.com/Yac-Team/ohtipi/blob/main/src/config.js

This should log OTP results in console so you can determine if the queries are successful.

@Kas-tle
Copy link
Author

Kas-tle commented Oct 6, 2021

@alectrocute Interestingly it appears that it is picking up the OTPs. Here is an excerpt:

{
  step: 0,
  service: undefined,
  string: "paypal: your security code is: XXXXXX. it expires in 10 minutes. don't share this code with anyone."
}
{
  step: 1,
  matchedOnLevel: 1,
  matchedObject: { code: 'XXXXXX', service: undefined, level: 1 }
}
{
  step: 2,
  secondPassResult: { code: 'XXXXXX', service: undefined },
  original: {
    obj: { code: 'XXXXXX', service: undefined },
    message: "PayPal: Your security code is: XXXXXX. It expires in 10 minutes. Don't share this code with anyone."
  }
}

Is it be possible that it is merely the clipboard function that is failing somehow?

@alectrocute
Copy link
Contributor

Hey @Kas-tle, can you git pull origin main and try again? Made a tweak that should fix this.

@Kas-tle
Copy link
Author

Kas-tle commented Oct 7, 2021

@alectrocute Yes that was indeed it. I am sorry that I did not initially realize that this only works with defined known services (assumed it was just some kind of generic regex looking for a 6 digit code). Perhaps it would be worth linking to https://github.com/Yac-Team/ohtipi/blob/main/src/libs/parse-otp-message/lib/known-services.js on the readme and specifying that these are supported services? Regardless, sorry for taking up your time with this. I should have dug deeper initially.

@Kas-tle Kas-tle closed this as completed Oct 7, 2021
@alectrocute
Copy link
Contributor

Agreed, @Kas-tle! It's linked on https://github.com/Yac-Team/ohtipi#find-the-important-bits but obviously not visible enough. I'll fix soon! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants