You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title describes dispatchEvent details are not passed to background args so i cannot use any component data in my background proces for fetching stuff for example
Let's say i have a function triggered by a button:
addEventListener('backgroundEventExecute', async (resolve, reject, args) => {
try {
// Notify that the background event was triggered
console.log('backgroundEventExecute: ', args, args.hello);
resolve();
} catch (error) {
console.error('Error in backgroundEvent:', error);
reject(error);
}
});
My args is always empty so the data i want to pass will never reach the background process. My console.log is reached and printed in the console. I've also tried to use CapacitorKV.get but i cannot use CapacitorKV.set in my angular/ionic component as it is not available there..
As the title describes
dispatchEvent details are not passed to background args
so i cannot use any component data in my background proces for fetching stuff for exampleLet's say i have a function triggered by a button:
And a runner.js like this:
My args is always empty so the data i want to pass will never reach the background process. My console.log is reached and printed in the console. I've also tried to use CapacitorKV.get but i cannot use CapacitorKV.set in my angular/ionic component as it is not available there..
Specs:
Can someone please tell me how to solve this issue OR fix this so we can use this background-runner?
Thanks in advance!
The text was updated successfully, but these errors were encountered: