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

Does not update message logs when sent from a Mac/iPhone #76

Closed
midi1996 opened this issue Jan 14, 2021 · 7 comments
Closed

Does not update message logs when sent from a Mac/iPhone #76

midi1996 opened this issue Jan 14, 2021 · 7 comments
Labels
enhancement New feature or request update pending This issue should be fixed with the next update

Comments

@midi1996
Copy link

Here the video of the issue:

https://streamable.com/qbmutu

Basically sending messages from your iPhone or macOS wont show up in the chat log in SMServer unless you refresh the webpage or switch users.

@itsjunetime
Copy link
Owner

Yes — I've been aware of this for a while, but have yet to find a good solution for it. The issue is simply that I've yet to find an easy/elegant solution to detect, with a high level of accuracy, when texts are sent outside of SMServer. For more technical detail, read below, but tl;dr is that I'm working on it and would like to get this fixed as well.

For detecting when the host device receives a chat, libsmserver creates a notification observer for the notification name __kIMChatMessageReceivedNotification. This observer is then notified every time the device receives a new message, and sends it to SMServer to be parsed correctly. There is a similar notification that is theoretically posted every time a message is sent from the host device's iMessage account (and I think phone number as well) with the name __kIMChatRegistryMessageSentNotification. I have tried creating a notification observer for this notification in every way I know how: in SpringBoard and many other processes, while connected to the IMDaemon and while disconnected, on the main thread and on background threads, etc, and I have yet to find a way to actually listen to when this notification is posted. I also say that it is theoretically posted because every time that I try to work on this, the system randomly stops posting this notification about a half hour or hour into working on this, so I can rarely make any progress on figuring it out. It's been tough, but I have been slowly making progress, and I hope to have this fixed soon (though how soon, I cannot say).

@itsjunetime itsjunetime added the enhancement New feature or request label Feb 10, 2021
@sabogalc
Copy link

@itsjunetime
Copy link
Owner

Alright, it's taken quite a while but I think I've got this one fixed -- SMServer commit and libsmserver commit

@itsjunetime itsjunetime added the update pending This issue should be fixed with the next update label Apr 3, 2021
@sabogalc
Copy link

sabogalc commented Apr 3, 2021

Can you test for this issue?

@itsjunetime
Copy link
Owner

Can you test for this issue?

Looks like I'm not running into that issue; not quite sure why it's being weird for sgtaziz.

@sabogalc
Copy link

sabogalc commented Apr 30, 2021

I still have to click out of a chat and then back into it to see messages that I sent from my Mac.
Untitled
I sent my "Don't mind me" text from my Mac, and I had to click out of the chat and back into it to see the message. I also sent a tapback from my Mac that you can see hasn't shown up in this screenshot yet. Also, for some reason, my contact's name was displayed under the message.

UPDATE - Okay, so something interesting to note about that Troll Face is that it is an iMessage sticker. It got me curious, and sure enough, I opened tickets for MyMessage, WebMessage, and BlueBubbles Desktop to support iMessage stickers. Let me know if I should open one for SMServer too. Out of all of the desktop apps, SMServer was the only one to load in the Troll Face GIF, and it correctly plays as a GIF, even though it is as a separate message and not an overlay over the Instagram DM screenshot. Here is some message information from the Troll Face.

tapback_guid="p:0/10B16418-20C0-4B59-B3D3-88E8DC5EEC75"

img src="data?path=StickerCache/860d0c7a4b56110a49c62c007eda589e-860d0c7a4b56110a49c62c007eda589e-sticker/860d0c7a4b56110a49c62c007eda589e-sticker.gif"

Of course, I had to try and put a tapback on the sticker just to mess around
image
but honestly, not much happened on my iPhone. I could see no visible changes in the conversation, and all that happened was that the conversation preview showed the emphasis.
PNG image

@sabogalc
Copy link

#101 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request update pending This issue should be fixed with the next update
Projects
None yet
Development

No branches or pull requests

3 participants