cancel
Showing results for 
Search instead for 
Did you mean: 

Mobile Cards - Cloud Foundry trial account - Geo Location Auto Replaced Parameters not working

0 Kudos

Hello Team,

We have a requirement in which we would like to load the mobile cards specific to location at which the mobile card is opened. To achieve the same we tried using the Auto Replaced Parameters mentioned in the link.

When we are using these parameters in our Query URL the required values of the latitude and longitude are not getting passed to backend, instead we are getting error.

'An error occurred parsing the OData service URL for query based card type mClockTest. Please check the back-end connection URL and the query URL for the respective card type. Typical problems include invalid characters in the URLs or not properly encoded query parameters'

Thanks and Regards,

Nittin Garg

0 Kudos

Do we have any mechanism in Mobile Cards, so that based on the Geo Location of the user Server can send the filtered cards (based on some geo fence logic)?

View Entire Topic
knittedman007
Advisor
Advisor
0 Kudos

Hi

The auto-replaced values can be used when sending requests to the backend as you surmised. But note a few things:

1) the replacement happens when syncing content to the device - this can happen at a number of times (opening the app, manual refresh, or even in the background for background initiated syncs). It is not necessarily related to when a card is *viewed* however.

As to the error you see - this might be because of the way the replacement parameter is used i the backend call. The best way to see what is happening is to enable mobile network trcae for mobile cards (under features) and look at the network requests generated against the backend system to see what is happenign on the actual network call

thanks

Chris