In my app I am creating a default layer prior to creating my anon user. My goal is to subscribe all anon users to this layer so I can send users messages when a new layer is created.
I can see everything happening in the geoloqi debugger as I expect, but no message is received on my phone. When I create my new layer, I am using those coordinates and radius as the basis for sending the message to my users in the default layer. I just expect to receive a message when I create the new layer and I don't.
Create Layer A Create Anon User User Subscribe Layer A Create Layer B Lat Lon Rad Send Message to Layer A using boundary Layer B Lat Lon Rad
What I did notice is a response property in the default layer create call "bounds":false. I assume this means I didn't pass lat/Lon parameters when I created the layer. I assumed, perhaps incorrectly, that a layer without a lat, Lon, and radius would be a global layer. I now assume it is just a pinpoint, or perhaps just an empty container.
If I want to have a default layer, should I just create it with my coordinates and a radius of 5 million meters so I can get coverage by most of North America?
It sounds like the problem is that there was never any location data collected for the users, so the system doesn't know where they are.
Here is what you should do:
As your application account, create Layer A. You'll do this only one time. Make a note of the layer ID that is returned.
From your app, after your user is created, subscribe them to this layer. Also make sure you have requested push notification permission and configured the certificates appropriately.
In the app, make sure you activate the SDK by setting the profile to "rough". This will cause the SDK to start sending location data.
Now you can send a message to anybody subscribed to the layer by using the message/broadcast method, sending a latitude,longitude and radius boundary.
The layer bounds are calculated based on any places that are on the layer. If you don't have any places, you'll see an empty bounds parameter.