Hi, I have read your plugin issue and believe can solve it.
I have worked with maps (native and JS sdk) on many phonegap apps. If you are using cordova-plugin-googlemaps I have worked with this plugin before. If interested please message me with more details like an error log or something so we can figure out the issue.
Or if you can create a sample app using the just the same block of code causing the error and share it that would make the entire process much easier to debug.
Also please let me know the maps plugin version that you are using.
Looking forward to solving your problem.
Regards,
Saba