User credentials sample app is crashing when you sign in(AppStudio for ArcGIS App Run has stopped working). Further debugging revealed the app is crashing at map.addLayer(featureLayer); after the featurelayer is initialised. Has anyone already fixed this? Thanks
Please change the line from
map.addLayer(featureLayer);
to
map.insertLayer(featureLayer,1); and this should fix the problem. It seems like Runtime is adding a layer but unable to index it correctly and hence crashing. -Nakul
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.