diff --git a/test-apps/ios-test-app/App/App/capacitor.config.json b/test-apps/ios-test-app/App/App/capacitor.config.json index b9ae162..27aec06 100644 --- a/test-apps/ios-test-app/App/App/capacitor.config.json +++ b/test-apps/ios-test-app/App/App/capacitor.config.json @@ -1,7 +1,7 @@ { "appId": "com.timesafari.dailynotification", "appName": "DailyNotification Test App", - "webDir": "www", + "webDir": "public", "server": { "androidScheme": "https" }, diff --git a/test-apps/ios-test-app/App/App/public/index.html b/test-apps/ios-test-app/App/App/public/index.html index a76cc15..b5b7e68 100644 --- a/test-apps/ios-test-app/App/App/public/index.html +++ b/test-apps/ios-test-app/App/App/public/index.html @@ -83,9 +83,7 @@ console.log('Script loading...'); console.log('JavaScript is working!'); - // Use real DailyNotification plugin - console.log('Using real DailyNotification plugin...'); - window.DailyNotification = window.Capacitor.Plugins.DailyNotification; + // DailyNotification will be set after Capacitor loads (see initialization script at end) // Define functions immediately and attach to window function testPlugin() {