Overview
App Links enable your WeWeb application to intelligently redirect users from web URLs directly into your native mobile app. When users click a link to your website—whether from social media, messaging apps, or emails—they'll be automatically directed to the corresponding page in your native app if it's installed. This creates a unified experience across web and mobile platforms, improving user engagement and retention.
Key Benefits
-
Automatic App Opening: Web links open directly in your native app when installed
-
Smart App Banners: iOS displays banners prompting users to open content in your app
-
Credential Sharing: Android shares saved passwords between web and mobile
-
Deep Page Linking: Preserve specific pages, parameters, and dynamic routes
-
Enhanced User Experience: Eliminate friction between web and mobile platforms
Prerequisites
Before implementing deep linking, ensure you have:
-
A WeWeb project deployed to production
-
A Despia project configured with your WeWeb URL
-
Web App Synchronization enabled in Despia:
-
Navigate to Add-ons → Hardcoded
-
Enable Web App Synchronization
-
Republish your app after enabling
-
iOS Universal Links Configuration
Overview
iOS Universal Links allow your WeWeb application to seamlessly integrate with your native iOS app. When users click links to your web app, they'll automatically open in your native app if installed.
Step 1: Create Apple App Site Association File
Create a JSON file named apple-app-site-association
(no file extension) with the following structure:
{
"applinks": {
"details": [
{
"appIDs": [
"TEAMID.BUNDLEID"
],
"components": [
{
"/": "/*",
"comment": "Matches any URL path"
}
]
}
]
}
}
Step 2: Locate Required Values
-
Team ID:
-
Go to Despia Editor → Publish App
-
Find under Development Team
-
Ensure your Despia account is connected to your Apple Developer account
-
-
Bundle ID:
-
Go to Despia Editor → Publish App
-
Find under App Bundle ID
-
Step 3: Upload to WeWeb
-
In WeWeb Editor, navigate to Assets → Files
-
Click Add New File and upload your JSON file
-
Click Set Path and enter:
/.well-known/apple-app-site-association
-
Save the path configuration
Step 4: Deploy and Test
-
Deploy your WeWeb application to production
-
Wait up to 1 hour for Apple to scrape and register the file
-
If the banner doesn't appear after 1 hour:
-
Uninstall the app from your device
-
Reinstall via TestFlight
-
This forces Apple to fetch the file fresh
-
iOS Features
-
Smart App Banner: Automatically appears when users visit your web app with the native app installed
-
Deep Linking: Links shared via messages/email open directly in the native app
-
Page Synchronization: Specific pages, query parameters, and dynamic paths are preserved
iOS Verification
- Verify your file is accessible at:
https://yourdomain.com/.well-known/apple-app-site-association
Android App Links Configuration
Overview
Android App Links enable your WeWeb application to open directly in your native Android app when users click web links. This creates a seamless experience across web and mobile platforms.
Step 1: Access Google Play Console
-
Open Google Play Console for your app
-
Navigate to Grow Users → Deep Links
-
You'll see "Domain not verified" - this is what we'll fix
Step 2: Enable Credential Sharing
-
Click on the domain error
-
Select Turn on Credential Sharing
-
Download the provided
assetlinks.json
file
Step 3: Upload to WeWeb
-
In WeWeb Editor, navigate to Assets → Files
-
Click Add New File and upload the
assetlinks.json
-
Click Set Path and enter:
/.well-known/assetlinks.json
-
Save and deploy your WeWeb application
Step 4: Verify Domain
-
Return to Google Play Console
-
Click Turn on Credential Sharing again
-
If it shows an error initially, don't worry:
-
Open the app on your Android device
-
Refresh the Google Play Console page
-
Try verification again (may take several attempts)
-
-
Once successful, the domain will show as verified
Step 5: Enable Features
After verification, enable Credential Sharing to allow:
-
Password sharing between web and mobile apps
-
Automatic credential filling
-
Seamless authentication experience
Android Troubleshooting
-
"JSON content type failed" error: This is often a false error - keep trying
-
Verification failing:
-
Ensure the file is accessible at the correct URL
-
Refresh the Play Console page (it doesn't update in real-time)
-
Uninstall and reinstall the app via Play Store testing track
-
-
Deep links not working: Wait for Google to propagate changes (can take up to 1 hour)
Android Verification
- Verify your file is accessible at:
https://yourdomain.com/.well-known/assetlinks.json
Testing Your Implementation
iOS Testing
-
Share a link to your web app via Messages
-
Click the link - it should open in the native app
-
Check Safari for the smart app banner
Android Testing
-
Close your native app completely
-
Click a web link in any app (WhatsApp, email, etc.)
-
The link should open directly in your native app
Important Notes
-
File Hosting: Both files must be served over HTTPS with no redirects
-
Content-Type: Must be
application/json
for both platforms -
File Names:
-
iOS: No file extension (
apple-app-site-association
not.json
) -
Android: Must include
.json
extension
-
-
Propagation Time: Changes can take up to 1 hour to take effect
-
Testing: Always test with production URLs before launch
For additional support or questions, please contact our support team at support@despia.com