Appcelerator and Geoloqi - anon subscription and creation of places/triggers
  • All,

    This is my latest attempt.

    1) I went to the Geoloqi website, located my application, and created a public layer there. 
    2) I marked down the layerID and added it to my defaultLayerID variable in my Appcelerator app. 
    3) I called geoloqi.init, passing all my params. One time I included my defaultLayerID variable as a layerIds parameter in the geoloqi.init call, another time I had a separate layer/subscribe call. Both showed successful subscription to the layer. 

    Neither allows the creation of a place or a trigger on that layer, despite my anonymous user being subscribed to that layer and the layer being marked public. 

    Any suggestions? I am at wits end with this. I really need to get this working as all other features of my app are done. 

  • 3 Comments sorted by
  • Hello Bruce,

    I believe the issue is that the layer was created with the website. Right now the website only puts the layer on the "default layer" when you create one, which is the one used for our Geonotes demo app. So when you are trying to use it within your application, it thinks it's for a different application.

    It would be nice to be able to choose the application for a layer at the very least. It would also be better if layers on here were organized by application. I will talk with the team and see if we can improve the interface this week.

    Try creating a layer within the context of the application, either using one of the client libraries with your application access token (, or using the phone itself. I believe that will fix your problems.

    Let me know if you are still having this issue after that. Thank you for reporting this!

  • Hi bp4151,

    Where are you trying to create the triggers? are you creating them at or are you trying to create then through your Titanium Application?

    If you are trying to create them through your application then you will see permissions errors because your user is attempting to create triggers/places on a layer they do not own. It is owned by your application.

    If you just want to create triggers for just the user of your app don't need a layer. Just call trigger/create in your Titanium App and a trigger will be setup for just the authenticated user.

    The other alternative is to have the phone make a request to your server (assuming you have a server) and have the server make the trigger on the layer (With the application access token)

    YOu should take a look at our new Layer, Places, and Triggers section for the different use cases of triggers layers and places and our Authentication section for more info on permissions and access tokens.
  • Patrick and Kyle,

    First, thank you very much for your response over the weekend. I really appreciate it as I am trying to do this project for free in my off time, and that often doesn't mesh with regular support schedules. 

    As for my layer, I want a single default layer in which anonymous mobile users can create places, triggers, and send messages. I had it set up originally where the phone was creating the layer each time and was using a key so it would not get recreated if it existed, but then all of a sudden my current users could no longer access that default layer.

    Now in order to create that layer again, this time using the access token, I just need the parameter name. I didn't see it in the layer/create docs, but I haven't looked in the sample code yet. 

    Thanks again...


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion