tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

`mutable-content` for watchOS platform notifications #2330

Closed vincentneo closed 1 year ago

vincentneo commented 1 year ago

According to #521, it's only sent if system_version is 10.0 and above. However, that value is only accurate for iOS, not watchOS. Notification Service Extension is supported since watchOS 6.0.

levlam commented 1 year ago

Can you use encrypted VoIP pushes on watchOS instead?

levlam commented 1 year ago

Could you check that watchOS pushes have mutable-content flag?

vincentneo commented 1 year ago

Can you use encrypted VoIP pushes on watchOS instead?

I have yet to try that.

Could you check that watchOS pushes have mutable-content flag?

If system_version is set to 10.0 it does have it.

levlam commented 1 year ago

If system_version is set to 10.0 it does have it.

Can you check that it is set for watchOS 6.0+ either now?

vincentneo commented 1 year ago

If system_version is set to 10.0 it does have it.

Can you check that it is set for watchOS 6.0+ either now?

@levlam yes it seems to be working now. Set system_version to 6.0 and works!

Thank you!

levlam commented 1 year ago

@vincentneo Could you also confirm that if you pass an empty system_version, then it is correctly identified as watchOS 6.0 by TDLib?

vincentneo commented 1 year ago

@levlam I don't know how/if TDLib correctly identified it as whichever watchOS version, but passing an empty system_version does work.