fix(ios): add Capacitor runtime files for test app
Created missing Capacitor JavaScript files required for plugin access: capacitor.js: - Copied native-bridge.js from Capacitor framework - Provides Capacitor runtime and native bridge functionality - Required for plugin communication with native code capacitor_plugins.js: - Created minimal plugin registration file - Sets up window.Capacitor.Plugins structure - Allows DailyNotification plugin to be accessed Fixes: - Black screen: Capacitor scripts now exist and can be loaded - Plugin errors: window.Capacitor will be available after scripts load - JavaScript errors: Missing script files were causing page load failures Result: App should now load and display the test interface
This commit is contained in:
1034
test-apps/ios-test-app/App/App/public/capacitor.js
Normal file
1034
test-apps/ios-test-app/App/App/public/capacitor.js
Normal file
File diff suppressed because it is too large
Load Diff
14
test-apps/ios-test-app/App/App/public/capacitor_plugins.js
Normal file
14
test-apps/ios-test-app/App/App/public/capacitor_plugins.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// Capacitor Plugins Registration
|
||||
// This file is auto-generated by Capacitor, but we create a minimal version for testing
|
||||
|
||||
window.Capacitor = window.Capacitor || {};
|
||||
window.Capacitor.Plugins = window.Capacitor.Plugins || {};
|
||||
|
||||
// Register DailyNotification plugin
|
||||
// The actual plugin is registered by the native bridge
|
||||
window.Capacitor.Plugins.DailyNotification = window.Capacitor.Plugins.DailyNotification || {
|
||||
// Plugin methods will be available after native bridge loads
|
||||
};
|
||||
|
||||
console.log('Capacitor plugins file loaded');
|
||||
|
||||
Reference in New Issue
Block a user