197
Views
9
Comments
Solved
[Native Geocoder Plugin] nativegeocoder is not defined
Question
native-geocoder-plugin
Mobile icon
Forge asset by Henrique Batista

Tried the Native Geocoder Plugin on an Android phone using Outsystems Version 10.0.816.0. 

Phone has GPS enabled and received the error: nativegeocoder is not defined. I see in the eSpace that nativegeocoder is part of the JS. Any suggestions on cause of the condition?

2017-07-05 22-17-18
Henrique Batista
Staff
Solution

Hi Gregory,

In order for you to use the plugin, you need to generate an app, it won't work using OutSystemsNow.

OutSystemsNow is a pre-bundled app with some plugins/features, you can find the documentation here.

For all the other plugins that you encounter here on the community, you'll have to generate your own app to use them.

Hope it helps

2017-07-05 22-17-18
Henrique Batista
Staff

Hi Gregory,

How are you testing/use it? Are you using OutsystemsNow or a generated application?

I just tested on a couple of androids and they're working.

Also, can you please upload an .oml with an example of your code.

Cheers,

2018-06-24 00-44-25
Bruce Buttles

I have the same issue - I am using the Android generated app to test.

I can't upload the oml due to privacy restrictions. However, I will be watching this thread.

2017-07-05 22-17-18
Henrique Batista
Staff

Hey Bruce,

Which version of Android are you using?

Cheers,

2018-06-24 00-44-25
Bruce Buttles

Henrique Batista wrote:

Hey Bruce,

Which version of Android are you using?

Cheers,

I am running Android 8.0.0 and Samsung Experience 9.0

(Build R16NW.N950USQU4CRD7)


2017-07-05 22-17-18
Henrique Batista
Staff

Hey Bruce,

I'm using the CoordinatesToAddress on a S8 Android 8.0.0 and Samsung Experience 9.0 and seems to be fine.

Can you send an .oml with the code?  

UserImage.jpg
Gregory Fx

Hi Henrique,

I am using Outsystems Now app on Samsung Galaxy S7 TMobile Android 7.0 for testing.

I can't share the oml, but I am using the Location Plugin (Published by OutSystems R&D) from Forge with your NativeGeocoderPlugin. I get the location OK because the Lat / Lon are displayed on screen above where the Locale from your plugin should be displayed. The Lat / Lon is being passed correctly to your plugin. 

The error occurs on entry to the MainFlow/Shipping screen. Perhaps a generated app will behave differently, but I can't compile a test yet.

Thanks for the replies.

2017-07-05 22-17-18
Henrique Batista
Staff
Solution

Hi Gregory,

In order for you to use the plugin, you need to generate an app, it won't work using OutSystemsNow.

OutSystemsNow is a pre-bundled app with some plugins/features, you can find the documentation here.

For all the other plugins that you encounter here on the community, you'll have to generate your own app to use them.

Hope it helps

UserImage.jpg
Gregory Fx

Hi Henrique,

After you mentioned about using the Outsystem Now app, it seemed like that could be the reason since the app is working inside the emulator. I will keep you posted when we generate.

Best regards.

2021-11-08 18-47-06
Egor Tsvetkov

Hi Henrique,

This plugin didn't work for me, because of nativegeocoder methods forwardGeocode and reverseGeocode return array, not a single object. I fixed this on my personal env.

Any idea why it works well on some devices? Is it OS-version specific?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.