Hello!
It's not available because you didn't add into Devices collection column with Geo point type. More information is here
http://docs.appery.io/documentation/b...
http://docs.appery.io/documentation/b...
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello!
It's not available because you didn't add into Devices collection column with Geo point type. More information is here
http://docs.appery.io/documentation/b...
http://docs.appery.io/documentation/b...
Thank you Maryna.
Could you provide us an example of how update of field geopoint from the device?
It is necessary create a custom service for this purpose or exists some predefined API or Service in Appery.IO?
You have to create service as shown here http://docs.appery.io/documentation/b... (see Update device section)
Appery.IO has very little information on it and doesn't look good.
We always get "PNDU246 GeoPoint should be an array [latitude, longitude]...". in all the ways..... (an array of Long? an array of Strings? a more complex array?)
Some questions about this:
What should be the value type of the Geopoint parameter in the UpdateService (STRING of Object)? (We have tried both ways and always get PNDU246 or ERROR......)
If the value type of the Geopoint in the UpdateService is STRING, what's the format of the string? Could you provide us an example please?
If the value data is Object (I suppose an array)? Could you provide us an example please? Whats the correct array format?
A. [40, -4] ?
B. ["latitude": 40, "longitude": -4]?
C. ["Latitude": 40, "Longitude": -4] ?
D. ["Lat": 40," Lon": -4] ?
E [__type: Geopoint, Latitude 40, Longitude: -4] ?
F ["40", "-4"]??
G.....
We have tried to do this in all the ways and we always get ERROR o PNDU246.
(We are about to put off Appery.IO PUSH and come back to another PUSH provider.)
Hi Rafael, some DB Column with datatype: 'Geo point', with value for example looks like: code[48.208, 16.373]/code
OK, but, how do you update that value through a UpdateService? We always get error message PNDU246 "GeoPoint should be an array [latitude, longitude]..." or error message BCXX004 "No resource method found for PUT, return 405 with Allow header"
We have followed the steps in the docs, but there is no example of how to update the value of the Geopoint, only for Channels, TimeZone, etc...
Please post the Test tab results with these error cases.
IIlya, we cannot use de Test Tab because the PushNotificacionID has a ";".
We are testing directly in the device using
encodeURIComponent(localStorage.getItem('pushNotificationDeviceID'))
as deviceId parameter in the request of the service.