forked from jsnbuchanan/crowd-funder-for-time-pwa
Adds native deep linking capabilities: - Configure timesafari:// URL scheme for iOS and Android - Add @capacitor/app dependency and configuration - Implement deep link handler with improved error logging - Support parameterized routes like claim/:id - Add debug logging for native platforms - Handle app mounting state for deep links Technical changes: - Update AndroidManifest.xml with intent filters - Add URL scheme to iOS Info.plist - Add @capacitor/app to Podfile and Gradle - Enhance main.capacitor.ts with robust deep link handling
26 lines
437 B
TypeScript
26 lines
437 B
TypeScript
import type { CapacitorConfig } from '@capacitor/cli';
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'app.timesafari.app',
|
|
appName: 'TimeSafari',
|
|
webDir: 'dist',
|
|
bundledWebRuntime: false,
|
|
server: {
|
|
cleartext: true,
|
|
},
|
|
plugins: {
|
|
App: {
|
|
appUrlOpen: {
|
|
handlers: [
|
|
{
|
|
url: "timesafari://*",
|
|
autoVerify: true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|