Description
I’ve got a cordova app (not ionic and not angular - javascript/jquery) and am curious if it’s possible to use the cordova.plugin.zoom plugin with it? I’m able to add the plugin to my project and gotten it to compile, however, when I use cordova.plugins.zoom.initialize(‘app_key’,‘app_secret’) or cordova.zoom.initialize(‘app_key’,‘app_secret’) the xhr-polyfill.js file in the cordova-plugin-wkwebview-file-xhr plugin (used for Apple’s required switch to WkWebView) throws the following error: xhr-polyfill.js - exception delivering event. TypeError: undefined is not an object (evaluating ‘cordova.plugins.zoom.initialize’)
This error occurs during the “load” event of the dispatch. I think the Zoom plugin is successfully sending that dispatch.
I’m curious if this is
-
An issue because my app is not in Angular? If so, it seems like the cordova plugin code is 95% of the way there to be a more generically accepted plugin. Any thoughts on what that would take?
-
An issue within xhr / cors due to required switch to WkWebView?
-
An issue because I’m not initializing the plugin. Because this is not an angular app, I’m not calling
import { Zoom } from '@ionic-native/zoom';
constructor(private zoomService: Zoom) { }
however, in config.xml I’ve added
<feature name="Zoom">
<param name="ios-package" value="Zoom" />
<param name="onload" value="true" />
</feature>
Perhaps there is another way to initialize?
Any thoughts would be greatly appreciated. I’ve done quite a bit of googling and searching this forum and trial and error within the code. If at all possible, I’d like to not have to switch to ionic just to add Zoom to our app.
Which version?
4.6.2166-6.603
To Reproduce(If applicable)
see above
Screenshots
not applicable.
Smartphone (please complete the following information):
- Device: iPhone 11
- OS: 13.5.1
Additional context
not applicable.