I have two layers. One is a tracking layer so only insert, the other is the last position so insert and updates position. All those information are storage as two separated tables in my db.
I already found a way of create new features on a Layer, so the tracking layer isn't really a problem.
But I'm wondering if there is a better way to do this process and link my db and the x,y position direct to the ServiceFeatureTable in Arcgis Online