POST
|
Thanks @Ting. Once the reference is held by a type outside of the sync scope, both unregister methods are working and the completion closures are called. Thank you so much for your help Ting. Cheers, Shimin
... View more
08-29-2023
05:21 PM
|
0
|
0
|
647
|
POST
|
Hi there, In our app we are trying to clean up the replica registry on our ArcGIS Servers whenever a downloaded offline geodatabase is deleted or overwritten by a new one. We are using the methods unregisterGeodatabase(_ : AGSGeodatabase, completion: ((Error?) -> Void)) and unregisterGeodatabase(withSyncID: UUID, completion: ((Error?) -> Void)) on AGSGeodatabaseSyncTask to unregister the replicas. We found both methods are not working and the completion closures are never invoked. Here are the steps we are using the methods: 1. Create an instance (agsGdbSyncTask) of AGSGeodatabaseSyncTask with the feature service URL. 2. Set the agsGdbSyncTask.credential as our services are secured. 3. Load the task: agsGdbSyncTask.load() { error in ...}. The load completion closure is invoked and the error is nil. 4. Run the above unregister methods in the completion closure of the agsGdbSyncTask.load() 5. Found both unregister methonds do not work and their completion closures are never called. I'm using Xcode 14.3 and ArcGIS Runtime SDK for iOS 100.15.2. Has anybody come across this or got any idea please? Thanks, Shimin
... View more
08-28-2023
09:57 PM
|
0
|
3
|
1011
|
POST
|
Thanks @Ting Hopefully it will be fixed in the SDK in the future. your suggested workaround is exactly what we've done. Cheers, Shimin
... View more
11-08-2022
01:10 PM
|
1
|
0
|
574
|
POST
|
Hi @Ting, Thanks for looking into this for us. ESRI's support has been terrific. Really appreciated. You could reproduce the issue in the sample code "Display device location with NMEA data sources" by making below code changes: 1. Commented out the line 186 in the @IBAction func reset() {...} 2. Added the 105 and 107 lines below in @IBAction func chooseDataSource(_ sender: UIBarButtonItem) {...} The steps to reproduce: 1. Have a GPS unit blue tooth connected to your iPhone or iPad. 2. Run the sample and look for Maps/Display device location with NMEA data sources. 3. After ArcGIS Online Login, tap the Source/Device (not Mock Data). The map now zooms to your current location and the gps symbol appears. You can walk around and notice that the gps symbol moves along with you indicating your current location. 4. Tap the Reset to turn off the gps symbol. 5. Walk away say 20 meters. 6. Tap the Source/Device to turn on gps again. The gps symbol appears again but it is NOT at your current location. it is stuck where it is turn off. If you continue walking, the gps symbol does not move at all. I noticed that this does not happen with AGSCLLocationDataSource and AGSLocationDataSource but only happens with AGSNMEALocationDataSource. Cheers, Shimin
... View more
09-21-2022
04:57 PM
|
0
|
2
|
668
|
POST
|
Hi there, Never mind! Figured it out based on the ESRI sample code "Display device location with NMEA data sources". Just need to recreate the AGSNMEALocationDataSource object and assign it to the mapView.locationDisplay.dataSource before call mapView.locationDisplay.dataSource.start(). I think the connectedAccessory need to be refreshed when the dataSource is turned back on after it is turned off. You don't have to do this with the default location datasource though. Cheers, Shimin
... View more
09-19-2022
09:21 PM
|
1
|
4
|
685
|
POST
|
Hi There, I'm using the AGSNMEALocationDataSource to get the location feed from external GPS unit: mapView.locationDisplay.dataSource = AGSNMEALocationDataSource(eaAccessory: connectedAccessory!, protocol: protocalString) When the data source was started, the gps symbol appeared on map. When I started walking, the gps symbol moved with me. So far so good, it had worked as expected. Then I stopped the data source to turn off the gps symbol and continued walking without the gps symbol on map. I stopped walking at the top end of the black dots as shown in below picture. Now the problem: I started the data source again and the gps symbol appeared on map again, but the gps symbol was not at my current location - the top end of the black dots. It did not catch up with my current location! It was stuck where the data source was stopped. Then when I moved, the gps symbol did not move at all and stuck there forever... However, with the AGSCLLocationDataSource I did not have the above problem. Any idea? Thanks, Shimin
... View more
09-15-2022
11:05 PM
|
0
|
5
|
746
|
POST
|
Hi there, When generating offline geodatabase, we don't want to download existing feature attachments but do want to be able to add offline attachments and sync the added attachments to the server. To do it we 1. set AGSGenerateGeodatabaseParameters.returnAttachments = false to not include existing attachments. 2. set AGSGenerateGeodatabaseParameters.attachmentSyncDirection = AGSAttachmentSyncDirection.upload. Then we are able to add attachments to offline features. But the problem is that when sync the offline database, the added attachments failed to be synced to the server!!! Is this a bug or what am I doing wrong? However, if set the AGSGenerateGeodatabaseParameters.returnAttachments = true, the added offline attachments could be synced to the server. But the problem is that the existing attachments were downloaded to the offline database which we don't want... These are my previous posts about the issue for your information: https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/questions-about-geodatabase-feature-attachments/m-p/1176272#M7381 https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-geodatabase-attachments/m... Thanks, Shimin
... View more
06-02-2022
07:15 PM
|
0
|
0
|
255
|
POST
|
Hi All, We figured it out: 1. set AGSGenerateGeodatabaseParameters.returnAttachments = false to not include existing attachments. 2. set AGSGenerateGeodatabaseParameters.attachmentSyncDirection = AGSAttachmentSyncDirection.upload. 3. AGSArcGISFeatureTable.hasAttachments will be true if the layer in the feature service is enabled with attachment. Then we are able to add attachment to features offline. Cheers, Shimin
... View more
05-23-2022
06:49 PM
|
1
|
0
|
427
|
POST
|
Hi All, We are using AGSGeodatabaseSyncTask to generate offline geodatabases. In the generated geodatabase we don't want to include existing feature attachments. To do this, we set the AGSGenerateGeodatabaseParameters.returnAttachments = false. My first question is: am I able to add attachments to the features in the generated geodatabase?. Here is my post about the issue a few years back: https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-geodatabase-attachments/m-p/653941 My second question is: how do I determine if a layer is enabled with attachment capability? Because we set AGSGenerateGeodatabaseParameters.returnAttachments = false, I have noticed that the AGSArcGISFeatureTable.hasAttachments is always false even though the feature layer in the feature service is already enabled with attachment... Thanks, Shimin
... View more
05-22-2022
06:39 PM
|
0
|
1
|
485
|
POST
|
Hi Divesh, How can I exclude existing attachments while generating a sync-enabled geodatabse? I'm using SDK 100.13... Thanks, Shimin
... View more
05-20-2022
02:14 AM
|
0
|
0
|
774
|
POST
|
Hi Nick, My problem has been fixed. Thank you so much for your help. Cheers, Shimin
... View more
03-24-2022
05:49 PM
|
1
|
0
|
889
|
POST
|
Hi Nick, I have prepared a reproducible Xcode project. What is the best way to send the zip file (382 mb) to you? Thanks, Shimin
... View more
03-22-2022
10:33 PM
|
0
|
0
|
899
|
POST
|
Hi there, Updating a feature with an AGSGeodatabaseFeatureTable fails and gets the "Geodatabase item not found" error: geodatabaseFeatureTable?.update(updatedFeature, completion: { error in if error != nil { print(error.localizedDescription) //"Geodatabase item not found" } }) It works fine with the feature service counterpart AGSServiceFeatureTable. Noticed it was a bug BUG-000140772: Applying edits on a ServiceFeatureTable fails against ArcGIS Enterprise 10.6.1 with the error “Geodatabase item not found.” on AGSServiceFeatureTable. https://community.esri.com/t5/arcgis-runtime-sdks-blog/announcing-arcgis-runtime-100-11-2/ba-p/1071731 I'm on ArcGIS Runtime SDK for iOS 100.13. Does anybody get any idea please? Thanks, Shimin
... View more
03-21-2022
06:08 PM
|
0
|
4
|
1067
|
POST
|
Hi Nimesh, Our service people eventually figured out that The AWS Appplication load balancer throws a 403 if the WAF blocks something. The WAF is blocking due to the number of requests. Increasing the http request limit from 1000 to 5000 http requests from a single IP in 5 min period seemed to have stopped the credential box popping up. Thank you so much for your help. Cheers, Shimin
... View more
10-31-2021
03:16 PM
|
1
|
0
|
1084
|
POST
|
Hi Nimesh, I forwarded your finding to our server people who are investigating. I'll report back how we go... Thank you so much for your help. Cheers, Shimin
... View more
10-13-2021
03:02 PM
|
0
|
1
|
1121
|
Title | Kudos | Posted |
---|---|---|
1 | 11-08-2022 01:10 PM | |
1 | 09-19-2022 09:21 PM | |
1 | 05-23-2022 06:49 PM | |
1 | 03-24-2022 05:49 PM | |
1 | 10-31-2021 03:16 PM |
Online Status |
Offline
|
Date Last Visited |
08-30-2023
12:08 AM
|