Repository navigation
Quick start: NFC tags, Android widget, quick actions and start/stop links - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Start and end trips without opening the app first.
What's new
openfahrtenbuch://start,openfahrtenbuch://stop,openfahrtenbuch://toggleand the same paths onhttps://fahrtenbuch.codext.de(universal links / app links). Handled insrc/app/+native-intent.tsxandsrc/lib/actions.ts; ignored until onboarding is done.toggleonly ends a trip that has run for more than a minute, so a double tap does not end it right away.https://fahrtenbuch.codext.de/toggleplus an Android application record to a sticker (react-native-nfc-manager). Android opens the app directly through anNDEF_DISCOVEREDfilter (plugins/with-nfc-start.js), iPhone shows the background tag reading notification via the universal link.react-native-android-widget,src/widget). It updates whenever the recording state changes. More > Add widget pins it.expo-quick-actions), kept in sync with the recording state.apple-app-site-association,assetlinks.json, fallback pages for/start,/stop,/toggleand a FAQ entry (already deployed).Fixes found on the way
predictiveBackGestureEnabledis now off.Android Auto is not included: it only allows navigation, media, messaging, point of interest, IoT and weather apps.
Testing
bun run checkpasses (42 checks).https://fahrtenbuch.codext.de/stop, widget pin, widget start from a cold start, widget state switch, quick action End trip, Back from the finish form.