Skip to content

feat: SDK update for version 31.3.0 - #149

Merged
ArnabChatterjee20k merged 2 commits into
mainfrom
dev
Nov 16, 2026
Merged

ArnabChatterjee20k merged 2 commits into
mainfrom
dev

Conversation

@ArnabChatterjee20k

@ArnabChatterjee20k ArnabChatterjee20k commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 31.3.0.

What's Changed

  • Added: Tracking sends app, screen and push analytics through Analytics; start() sends first_open once per install and app_updated after a version change
  • Added: Push.setTracking sends push_received and push_opened with the message's messageId
  • Added: PushNotificationOpened.messageId
  • Added: Account.createDevice, getDevice, deleteDevice and updateDeviceSession, and the Device model
  • Added: Account.createLDAPSession
  • Added: Session.userName
  • Added: ImageFormat.AUTO on Storage.getFilePreview and the avatar endpoints, serving avif or webp when the Accept header supports it
  • Added: OAuthProvider.NAVER and OAuthProvider.VIPPSSANDBOX
  • Updated: the SDK no longer declares FOREGROUND_SERVICE and FOREGROUND_SERVICE_REMOTE_MESSAGING; apps that call Push.setForeground(true) declare them
  • Fixed: background push keeps waking up on phones that hold back expedited jobs
  • Updated: requests send X-Appwrite-Response-Format: 2.7.2

@appwrite

appwrite Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

This release adds analytics tracking for app lifecycle, screens, and push events, along with device and LDAP account APIs and additional image-format and OAuth-provider support. It also updates foreground-service opt-in behavior and background push wakeup handling for Android 31.3.0.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 15
File Change
CHANGELOG.md, README.md Document the 31.3.0 release, APIs, tracking helpers, and foreground-service setup.
docs/examples/java/account/create-device.md, docs/examples/java/account/get-device.md, docs/examples/java/account/delete-device.md, docs/examples/java/account/update-device-session.md, docs/examples/java/account/create-ldap-session.md Add Java usage examples for the new account endpoints.
docs/examples/kotlin/account/create-device.md, docs/examples/kotlin/account/get-device.md, docs/examples/kotlin/account/delete-device.md, docs/examples/kotlin/account/update-device-session.md, docs/examples/kotlin/account/create-ldap-session.md Add Kotlin usage examples for the new account endpoints.
library/src/main/AndroidManifest.xml Remove SDK-declared foreground-service permissions and document the opt-in requirement.
library/src/main/java/io/appwrite/Client.kt Update SDK and response-format headers and expose the application context internally.
library/src/main/java/io/appwrite/Tracking.kt Add install, lifecycle, screen, manual-event, and push analytics helpers.
library/src/main/java/io/appwrite/enums/ImageFormat.kt, library/src/main/java/io/appwrite/enums/OAuthProvider.kt Add AUTO image output and the NAVER and VIPPSSANDBOX OAuth providers.
library/src/main/java/io/appwrite/models/Device.kt Add the Device response model.
library/src/main/java/io/appwrite/models/Session.kt Add the userName field to Session serialization and conversion.
library/src/main/java/io/appwrite/services/Account.kt Add device-management and LDAP-session endpoints.
library/src/main/java/io/appwrite/services/Avatars.kt, library/src/main/java/io/appwrite/services/Storage.kt Document and enable image negotiation for automatic output formats.
library/src/main/java/io/appwrite/services/Push.kt Expose opened message IDs and connect push receipt/open events to Tracking.
library/src/main/java/io/appwrite/services/PushBackground.kt, library/src/main/java/io/appwrite/services/PushWakeups.kt Make foreground mode opt-in and improve recovery when expedited jobs are delayed.
library/src/test/java/io/appwrite/TrackingTest.kt Test tracking event payloads, install markers, and push-event deduplication.
library/src/test/java/io/appwrite/services/PushNotificationOpenedTest.kt Test message ID extraction from opened push payloads.
🔇 Filtered out · 1

Findings Hansi considered but did not post.

Finding Why
Preserve absolute URLs passed to event() Verifier: The claim doesn't hold. URI(null, null, path, null) builds a string and then parses it as if by URI(String). : and / are legal path characters, so they aren't quoted. https://example.com/page therefore parses as an absolute URI with scheme https. resolve() returns an absolute URI unchanged, so absolute URLs are kept. I couldn't run it because the sandbox has no Java, so this rests on the JDK documentation and source.

Reviewed 0a10992 · Details · Comment @appwrite review to re-run, or mention @appwrite with a question.

@ArnabChatterjee20k ArnabChatterjee20k changed the title feat: Android SDK update for version 31.3.0 feat: SDK update for version 31.3.0 Nov 16, 2026

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ArnabChatterjee20k
ArnabChatterjee20k merged commit 73f800b into main Nov 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant