- Create mock implementation of DailyNotification plugin for WebView
- Mock echo, configure, and getStatus methods with Promise-based responses
- Add console logging for debugging
- Ensure functions work even when native plugin isn't available
This resolves the JavaScript errors by providing a working mock
implementation for testing the plugin interface in WebView.
- Wrap function definitions in DOMContentLoaded event listener
- Add cache-busting meta tags to prevent WebView caching
- Add console logging for debugging
- Ensure functions are properly attached to window object
This should resolve the 'function not defined' JavaScript errors
and prevent WebView from using cached HTML files.
- Replace ES module imports with global Capacitor objects
- Add null checks for DailyNotification plugin availability
- Fix 'Failed to resolve module specifier @capacitor/core' error
- Use window.Capacitor and window.DailyNotification instead of imports
This resolves the JavaScript error that was preventing the web
interface from loading properly in the test app.
- Create missing capacitor-cordova-android-plugins directory and build files
- Add cordova.variables.gradle with proper variable definitions
- Create www directory with functional test web app
- Add capacitor.config.ts with plugin configuration
- Fix test file package names from com.getcapacitor.myapp to com.timesafari.dailynotification
- Move test files to correct package directories
- Test app now builds successfully and creates APK
- Capacitor sync now works (Android portion)
- Build script handles both plugin and test app builds
The android/app test app is now fully functional and can be used
to test the DailyNotification plugin in a real Android environment.
- Remove IndexedDB storage implementation (~90 lines)
- Remove 'web' platform from type definitions
- Remove web platform registration from plugin
- Update storage factory to exclude web platform
- Remove web-specific SSR safety checks from vite-plugin
- Delete web implementation files (src/web/, www/)
BREAKING CHANGE: Web (PWA) platform support removed. Plugin now
supports Android, iOS, and Electron platforms only.
- Add build scripts for Android and iOS platforms
- Remove duplicate web implementation (src/web.ts)
- Add proper TypeScript configuration
- Add module documentation to index.ts
- Clean up package.json scripts
This commit improves the project structure and build process by:
1. Adding dedicated build scripts for native platforms
2. Removing redundant web implementation
3. Adding proper TypeScript configuration with strict mode
4. Improving code documentation
5. Organizing package.json scripts
The changes maintain backward compatibility while improving
the development experience and code quality.