dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
684 stars 162 forks source link

Mobile push notifications don't work when bot is running #157

Closed VoicelessRoar closed 2 years ago

VoicelessRoar commented 2 years ago

Summary

Mobile push notifications don't work when bot is running

Reproduction Steps

Run the bot Have another account message you so you would get notifications No notification ever comes

Code

No response

Expected Results

Get notification

Actual Results

No notification ever comes

System Information

not relevant

Checklist

Additional Information

No response

theAbdoSabbagh commented 2 years ago

This isn't related to discord.py-self, in fact, not related to any library at all. Try logging into that account yourself on a device without a selfbot, and receiving a message from another account, you won't get a mobile notification. That's how Discord functions.

VoicelessRoar commented 2 years ago

This isn't related to discord.py-self, in fact, not related to any library at all. Try logging into that account yourself on a device without a selfbot, and receiving a message from another account, you won't get a mobile notification. That's how Discord functions.

In Discord notification settings there is "push notification inactive timeout". If the library could somehow trigger the timeout, notifications would work normally.

dolfies commented 2 years ago

You can try changing the presence with afk set to True.