This PR introduces deep linking support in sample app. It allows users to be directed to specific screens within the app via deep links. This PR uses amiapp-reactnative-apns as url-scheme.
Changes
Added a linking configuration object in the main app.tsx
Configured URL prefixes to recognize amiapp-reactnative-apns:// links.
Mapped specific paths to the settings screen (QA screen)
Consume linking configuration in NavigationContainer
Added required code in AppDelegate.mm file
Added url scheme in info.plist
Testing
Send a push notification with deep link amiapp-reactnative-apns://qa-settings or amiapp-reactnative-apns://login
Tap on the push notification
You will be taken to settings screen or login screen based on the deep link
Dev testing cases covered:
Push notification received
Rich push notification with image received
Rich push notification with image and deeplink received
When the app is in the foreground, background, and on tapping, QA screen opens
When the app is in a killed state, on tapping, QA screen opens
This PR introduces deep linking support in sample app. It allows users to be directed to specific screens within the app via deep links. This PR uses
amiapp-reactnative-apns
as url-scheme.Changes
amiapp-reactnative-apns://
links.NavigationContainer
Testing
amiapp-reactnative-apns://qa-settings
oramiapp-reactnative-apns://login
Dev testing cases covered:
Since
autoTrackPushMetrics
is true by default, the auto tracking of push metrics is also covered in this PR.