Android Application minimize issue - xamarin

I have developed an Xamarin forms application. In Android devices, Lenovo K6(v7.0) and Nexus 6 (v7.1.1), when the app is minimized and opened by clicking the app icon the opening page of the application is reset to default instead of showing the part in the page where the user has minimized the application. But, when the app is minimized and re-opened using the recently opened tabs it is resumed correctly.
This problem arises only in the mentioned two devices in all other devices the page is resumed from where it is minimized when the user re-opens the application on using both recent tabs or App icon click. If the close application then reopens it and application starts from Splash screen. In above scenario, the app starts with the home page and reset as default launch. I have started the download of my app and progressing the download. I have minimized the app and click app icon from the installed app on the device. Now, progress is reset and file stays as download file.
Please suggest on this to resolve it.
Regards,
Cheran

Related

Xamarin.Auth doesn't persist data after closing the app - ios

I have built an application through Xamarin.Forms, I am using xamarin.auth to save sensitive (login) data on each platform, Android app works correctly, I login to the app, save the data, close the app, re-open it and no need to login, the app goes directly to the home page, but in ios every time I open the app I need to login, and after that I close it and re-open it again I need to login again, I think there is something missed, I am debugging on a real iPhone 7 plus device, any help please?

Xamarin iOS opens and immediately closes

My Xamarin iOS app will build successfully, however, during launch it will flash the launch screen and immediately return to my phones home screen exiting my app without an error.
Upon reviewing Xamarin Studio, the status appears at top:
Waiting for debugger to connect to Phone on port 10000 view USB...
and simply hangs.
How can this be alleviated?
just right click on your project and set it as a startup project. I solved the same problem and it launches the app properly without closing it.

Running iOS8 extension on simulator offers no suitable host app

When I run my ios8 action extension on the iPhone simulator it gives me a list of apps to act as host, but it only offers 'today' and my own app even though I have specified the following in NSExtensionActivationRule in the plist:
NSExtensionActivationSupportsImageWithMaxCount:1
NSExtensionActivationSupportsWebURLWithMaxCount:1
so I would have expected safari, photos etc.
You may want to forego launching the extension directly from the simulator.
I've been debugging extensions all week and what I'd suggest is this (not too long) process:
Launch the app so that your latest version of the extension is
loaded onto the simulator.
Then stop the app so the simulator is not in use.
Attach to the extension via this Xcode menu Item: Debug->Attach to Process->By Process Identifier (PID) or Name
Xcode will now say "Waiting for 'EXTENSION NAME HERE' to start" and may prompt you to "take the appropriate action"
(On the simulator) Launch Safari (or the appropriate app) and interact like you would if Xcode had launched it on your device.
Once your extension is run, Xcode will attach and you can debug
I would recommend binding that menu item to a keyboard shortcut (I used Opt-Shift-Cmd-A because I hate my carpal tunnel) because it's two items down and the stupid attach menu loads all the active process AFTER it opens so the item you want jumps to the top of the screen.
Once you load the extension you can keep re-attaching to it if it crashes without having to relaunch the containing app.
This has sped up my debugging process quite a bit.
Create action extension involves the following three steps
1) Create a Target with "Action extension" template
2) Goto iPhone "Photos" app and choose a photo and click Share icon. It will show "Share" activities(FB, Twitter, etc) and "Action" activities(Copy, Slideshow, etc). Goto end of "Action" activities and click "More" button
3) In the "Activities" page, you have to enable your "Action" extension

After starting an application for the second time, the splash image does not disappear

I am using Worklight v5.0.5 and have created a Worklight Hybrid application; I am running the app on iOS v5.1.1, compiled with Xcode 4.6.
When I execute the application in the iPad from Xcode - the iPad connected with the USB cable to the Mac - the application starts fine, I see the splash screen and then the login page.
If I disconnect the USB cable I'm not able to run the application again. Once I kill the application from the iPad, or stopping it ib Xcode before disconnecting the USB cable, I'm not able to start it again, the application does not go past the splash image.
Similarly, if I generate an .ipa and I install the it via the IBM Worklight Application Center then the first time I start the application it is fine, but if I kill the application (click twice the home button and so on...) then the next time I start the application it won't go past the splash image as well.
Any hint?
I have noticed similar behavior, not the same scenarios as you have described. For me, this helped:
After disconnecting the device from the Mac, I have made sure to exit the app in the same manner you have and to also close the iPad (not shut down, just clicking the power button to close the display) and then try to run the app again. You can also try shutting down the iPad. If that helps, this is not a Worklight issue...
Based on comment #3 to this answer, which revealed the issue at hand:
Once creating an application - for example with the name "newApp". this value, "newApp" is referenced in several locations throughout the project - the HTML filename, in application-descriptor.xml, references to the CSS and JS files of the applications and possibly another one or two references.
Changing this value is not supported. Changing it can indeed cause what is described in this question, and other oddities. Revert the change, and the application will work.

iTunes Connect icon rendering

Upon submitting an OS X application to the Mac App Store via iTunes, I've noticed that viewing the application icon in iTunes Connect shows the icon with rounded corners and dropshadows. This is strange because when viewing application in the Mac App Store it's clear that the rounded corners are entirely optional.
Is there something I should have added to my Info.plist file in order to stop this from happening (similar to the UIPrerenderedIcon key in iOS products), or is this just an oddity of the iTunes Connect website? The icon renders correctly in Finder and via the Activity screen in Xcode.
Any help would be appreciated.
Turns out that the App Store renders icons like this by default. It has no impact on the App Store rendering on the customer facing site.

Resources