You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep the push subscription open in the Flutter and Android README samples #2101
Stop the Flutter and Android README Push samples from tearing the subscription down right after subscribing. Copying the current samples calls subscription.unsubscribe() immediately, so no message ever arrives. Raised by Hansi on the README-only SDK PR appwrite/sdk-for-flutter#342 (see also appwrite/sdk-for-android#144).
templates/flutter/README.md.twig: drops the trailing subscription.unsubscribe(); from the Push sample and adds a sentence to keep subscription while you want messages and unsubscribe when you stop listening, for example in the widget's dispose().
templates/android/README.md.twig: same change for the Kotlin sample, pointing at the activity's onDestroy().
Remaining steps
None in the generator. PR #2099 is the full template change. The generated READMEs reach appwrite/sdk-for-flutter and appwrite/sdk-for-android with their next SDK regeneration (the open README PRs there may need the same edit).
Activity