Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null at plugin Init (plugins/cordova-plugin-googlemaps/www/pluginInit.js:72)
at latest version of plugin i got this error in android devices
my ionic info
ionic (Ionic CLI) : 4.1.2 (/Users/alkhateeb/.npm-packages/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0, browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, (and 14 other plugins)
System:
Android SDK Tools : 25.2.5 (/Users/alkhateeb/Downloads/android-sdk-macosx)
ios-deploy : 1.9.2
ios-sim : 5.0.11
NodeJS : v8.11.3 (/usr/local/bin/node)
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.3 Build version 9E145
Please tell us your new feature idea
Why do you need it?
How helps other people?
ping
i created new project to check if i have problem in my environment , and while installation i got this error
Failed to install 'cordova-plugin-googlemaps': undefined
(node:93984) UnhandledPromiseRejectionWarning: Version should contain only numbers and dots
I do get the same error after update to version 2.4.6
Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null at plugin Init
document.body.insertAdjacentHTML('afterbegin', envTestDiv);
I had to switch back to 2.4.4 to keep the project running.
i still have the same issue , i tried everything you mentioned
Failed to install 'cordova-plugin-googlemaps': undefined
(node:93984) UnhandledPromiseRejectionWarning: Version should contain only numbers and dots
If you can't solve the problem by yourself, please share your project files (including platforms directly) onto GitHub.
ping
Upgrading to 2.4.6 causes issues. I had to recreate my project from scratch to fix this error. Luckily, for ionic, recreating the project and moving the source was simple.
Good luck...
As I said,
If you can't solve the problem by yourself, please share your project files (including platforms directly) onto GitHub.
I just installed the latest version of the plugin and the error occurs in my project ( cordova ,Angular JS)
Here is the stack trace
Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null
at pluginInit (plugins/cordova-plugin-googlemaps/www/pluginInit.js:72)
at plugins/cordova-plugin-googlemaps/www/plugin-loader-for-android_ios.js:13
at build (cordova.js:51)
at require (cordova.js:66)
at localRequire (cordova.js:47)
at Object.exports.mapModules (cordova.js:1504)
at cordova.js:1304
at Channel.f (cordova.js:689)
at Channel.fire (cordova.js:842)
at cordova.js:1296
As I said,
If you can't solve the problem by yourself, please share your project files (including platforms directly) onto GitHub.
ping
I cannot share my project publicly
V 2.4.4 works and that will do for the moment.
I have a more pressing issure to resolve :
The map does not show at all in my app.
It uses angular js and onsen-ui framework.
My guess is that something in the framework prevents the app background
from becoming transparent still looking into that.any ideas are appreciated.
Ps.my keys work, verified by building a hello world app which works fine
Thanks
Andy
On Saturday, October 13, 2018, Masashi Katsumata notifications@github.com
wrote:
ping
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2452#issuecomment-429576848,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACBC91zVzyNtzzOt3-3g-hJcuVgViQCyks5ukluJgaJpZM4XL0ka
.
I cannot share my project publicly
Nobody contribution, no help (then will close this thread)
Since nobody provided enough information, I close this thread.
Just found this on Google search (it's the only result that matches). I'm experiencing the same problem. Unfortunately I also cannot share the project files but I get the exact same error on 2.4.6:
2019-02-19 11:02:01.629 2576-2576/com.domain.app I/chromium: [INFO:CONSOLE(72)] "Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null", source: file:///android_asset/www/plugins/cordova-plugin-googlemaps/www/pluginInit.js (72)
2019-02-19 11:02:06.479 2576-2576/com.domain.app I/chromium: [INFO:CONSOLE(1224)] "deviceready has not fired after 5 seconds.", source: file:///android_asset/www/cordova.js (1224)
2019-02-19 11:02:06.479 2576-2576/com.domain.app I/chromium: [INFO:CONSOLE(1217)] "Channel not fired: onCordovaReady", source: file:///android_asset/www/cordova.js (1217)
2019-02-19 11:02:06.479 2576-2576/com.domain.app I/chromium: [INFO:CONSOLE(1217)] "Channel not fired: onCordovaInfoReady", source: file:///android_asset/www/cordova.js (1217)
2019-02-19 11:02:06.480 2576-2576/com.domain.app I/chromium: [INFO:CONSOLE(1217)] "Channel not fired: onCordovaConnectionReady", source: file:///android_asset/www/cordova.js (1217)
No longer support for v2.4.6.
Sorry, I don't understand. 2.4.6 is the latest version, no? Or are we supposed to use 2.4.4 until another version comes out?

What number do you see?
And don't jumping in to closed issue thread.