iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello Crosslight Support,
I am experiencing some problems with Crosslight iOS Unified (Crosslight 3 Update 2). My sample solution can be downloaded from the link at the bottom, so you can reproduce the problems.
I created a new project with the wizard in Visual Studio and I used the "Drawer Template" for this. I only created an iOS project. After that, I continued to work on the Mac with Xamarin Studio (5.7 build 661, Xamarin.iOS 8.6.0.51). The first step was to migrate the project to the unified API and to reset the reference to "Intersoft.Crosslight.iOS".
Issue #1: Running the app with iOS 8.1 works fine. Running the app with iOS 7.1 generates an error. See attached screenshot "error_drawer". I tried the same with your "DrawerSample" from the unified branch and I had the same error.
Issue #1B: When I change the root viewmodel in the AppService->OnStart method of the core project to "SimpleViewModel", the application works fine with iOS 7.1 and iOS 8.1. So, my conclusion is that something with the drawer causes an error. But, you are the experts. Please, change the root viewmodel back to "DrawerViewModel" to reproduce Issue#1.
Info: I have XCode 6 installed and I compiled against iOS SDK 8.1. iOS SDK 7.1 is no longer present after upgrading to XCode 6.
Issue #2: I don't know if this problem is related to the unified API, but I describe it here anyway. What I want to achieve with the application is to have a list with image, text and description per list item. In the header part I have three buttons (Add, Update, Delete) to manipulate the list. This works fine. But I also want to manipulate the list items in the background. Therefore I have a timer in the SimpleViewModel. The timer checks every second, if a date of a list item is reached and then this list item should change its appearance. This is done in the SimpleViewModel in line 78. Normally I call "OnDataChanged()" to update a list item. If I do this here, I get an error (see "error_timer" attached) and the app freezes. To reproduce the problem, please comment in line 79 in the SimpleViewModel and set a suitable date in line 68. Updating the "GreetingText" works with the timer, but the list items have some trouble with this. Is it a bug or am I doing something wrong?
I need this to work on iOS 7 and iOS 8 as a Unified API app. A quick solution would be nice.
Thanks,
Thomas
http://81.20.83.35:1973/Intersoft/CrossListTest.zip
I was able to reproduce the Issue #1 in my local end. I'm investigating the problem to find out what may cause the problem. I will keep this thread updated with any news regarding this.
Issue #2: ... The timer checks every second, if a date of a list item is reached and then this list item should change its appearance ...
I modified CrossListTest sample and managed to have the list item change its appearance (work as expected). The detail is as follow:
Modify UpdateIcon() in Item.cs file (Model) by replacing this.thumbNail with this.ThumbnailImage.
public void UpdateIcon() { if (this.date < DateTime.Now) { this.ThumbnailImage = typeof (item).Assembly.GetManifestResourceStream("CrossListTest.Core.Assets.Images.Large.lumix.jpg") .ToByte(); this.StrikeThrough = true; } else { this.ThumbnailImage = typeof (item).Assembly.GetManifestResourceStream("CrossListTest.Core.Assets.Images.Large.lumix.jpg") .ToByte(); this.StrikeThrough = false; } }
Modify OnDataChanged in the constructor of SimpleViewModel into the following:
public SimpleViewModel() { ... if (currentItem != null) { currentItem.UpdateIcon(); ServiceProvider.GetService<IViewService>().RunOnUIThread(() => { this.OnDataChanged(currentItem); }); this.GreetingText = "let's go"; } ... }
Save all the changes; set a suitable date in line 68; and when a date of a list item is reached, then this list item should change its appearance (from polaroid.jpg to lumix.jpg).
Hope this helps.
Hello Yudi,
your proposed solutions for Issue#2 work great.
What about Issue#1! I need a solution for this, too. The drawer navigation is very important and it must work in iOS 7 and iOS 8 as a "Unified API app". It is getting urgent for me, so a fix would be very nice.
Hello Thomas,
The issue #1 has been filed under CROS-722 backlog. A nightly build that addresses this issue will be posted on the upcoming Monday.
Thanks!
Hello Support,
where can I find this nightly build?
I am still waiting for the nightly build.
"upcoming Monday" is over. Even with time zone considerations.
Please, provide the nightly build. The problem is very urgent and I need a solution.
Sorry for the delay in sending this.
Crosslight 3.0.5000.191 is now available in the git repository. This nightly-build update includes fixes for CROS-722.
Based on my test using DrawerSample from Unified branch, the problem is no longer persist. Please apply the nightly-build and let me know the result.
the problem seems to be solved with the nightly build.
Glad to hear that the problem is now resolve after apply the nightly build.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname