Thanks for reporting. For now, if you want to use Smack with an Android app that targets API level 31, you may need to disable ServerPingWithAlarmManager
and potentially create your own instance of the manager where the pending intent is created with the appropriate flag.