If your deep links are opening in a web browser, it's almost certainly because the link is formatted as a standard web URL (i.e., starting with http://
or https://
). For a deep link to be handled directly by your application, you must use a custom URL scheme that is specifically registered by your app.
Follow these steps:
- Define and Register a Custom URL Scheme for Your App: This involves configuring your app's project settings to recognize a unique scheme (e.g.,
yourappname://
ormyappscheme://
).- For iOS, this is typically done in the
Info.plist
file by adding URL Types. - For Android, this involves adding an
<intent-filter>
to the relevant Activity in yourAndroidManifest.xml
.
- For iOS, this is typically done in the
- Use the Custom URL Scheme in Your Push Notification Payload: When you configure the deep link action for your push notification in the Pushwoosh Control Panel (or via the API), use your custom scheme. For example, instead of
https://yourdomain.com/product/123
, you would useyourappname://product/123
. - Implement Handling Logic in Your App's Code: Your application code needs to be set up to intercept and process incoming URLs that use your custom scheme. This allows your app to parse the URL (e.g., the path
product/123
) and navigate the user to the appropriate content or screen within your app.
Refer to the official Pushwoosh documentation on "Deep Linking" and platform-specific developer guides (iOS Universal Links/Custom URL Schemes, Android App Links/Intent Filters) for detailed implementation instructions.
Comments
0 comments
Please sign in to leave a comment.