Closed jscarl closed 5 years ago
deviceready event is not fired before using this plugin.
i have call LocationService.hasPermission()
after platform.ready()
but the console show Class Not Found. any solution?
Until you solve the message deviceready has not fired after 5 seconds
, you can't use the statement
It looks like this is a cordova-plugin-googlemaps
issue.
It crashes inside LocationService.js because JS code binds to an unexisting class LocationService
in native code (its name is PluginLocationService
actually).
Excerpt from hasPermission
function, line 21:
reject.bind(self), 'LocationService', 'hasPermission', [], {sync: true});
whilst getMyLocation
function binds to the correct one PluginLocationService
at line 57:
reject.bind(self), 'PluginLocationService', 'getMyLocation', [params], {sync: true});
I updated line 21 locally and it worked as expected.
@Jbelmonte Thank you for figured out.
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior:
Expected behavior:
Screen capture or video record:
Related code, data or error log (please format your code or data):