I'm developing a windows phone 8 application, which relies on IsolatedStorageSettings for saving application settings. I don't own a real device, so i'm using the emulator to test the app. Application settings persist correctly during the whole application lifecycle, even when you quit the application by navigating to the Windows Phone 8 start page and re-run it.
Application settings don't persist if i close the emulator and re-run the app.
The question is: would application settings persist correctly in a real device after it has been turned off?
Thanks
Yes. IsolatedStorage is persistent across power on/ off cycles of the device. The Application settings or IsolatedStorage is cleared only when the user removes(uninstalls) the app from the device.
Related
I am creating a hybrid mobile application using Cordova/Ionic/Angular Js. My requirement is to Sync the Data (or in other words prefill the mobile DB ) from the Desktop(where the Mysql DB is residing) with the SQLite Db (residing in the phone) when i connect the phone to the desktop through USB. I can't use Web Services since the app has to run in an offline mode.
I have done a lot of searching for that but all i could is the solution for Android app(native) where they are mentioning to use JDBC /Socket Programming. I have found one cordova content sync plugin but i think it again requires the internet connectivity , is there any cordova plugin that can help in that? Please guide.
Who should perform the sync? The mobile device or the desktop computer?
I would suggest the following:
Enable USB Debugging in Android
Desktop computer should have adb drivers installed.
Use adb commands to communicate with your device (i.e. pull the database, perform some updates, push the database)
There is a tool on github which does something similar, maybe you can look at the source to get and idea how to do this: https://github.com/google/adb-sync
I have accidentally killed one of my WP projects in VS2013. I receovered the source code from the backup, but now, if I try to recompile it and deploy to my device for further debugging, all my app data in the app IsolatedStodage area will be wiped (see this post).
The problem is that I have gathered some important data in my app, and need to save them for later use with newer versions of my app. Is there a way to access the file system on a WP device unlocked for development and save the corresponding IsolatedStorage files for the app? I know that it's possible for the WP8/8.1 emulator (we can mount the .vhd files), but what about a WP device? And if it it's possible, what files/folders do we need to save?
Try IsoStoreSpy.
It allows you to browse the IsolatedStorage of application on both emulator and device. You need to copy all the files from IsolatedStorage and upload them to device after updating the application.
I tried to test following this code:
BackgroundFileTransfer
After download file, if you play it immediately, the media plays well. But if you shutdown the Emulator, and run it again, there is no media file in Storage.
I don't know how to save this file to see it again in next run application. Help me!
Thanks!!!
windows phone emulator is a virtual device for testing apps in Devlopement. Every time when you ShutDown,its instance is destroyed with application and its isolatedStorage too and after it Starting it again it takes up new instance and again new IsolatedStorage Space for application when its again installed. so you can not manage data if you are shuttig down it While in windows phone Device it stores application in Device Memory so it doesnt get Destroyed untill you reset your phone or Unistall tha Applcation.
You can use Device for testing and managing Application's IsolatedStorage.
So, I would like to have a Windows Phone app "connected" at ALL TIME with a Windows service.
That means that the service would need to know if a device has been turned off or lost network connection within seconds after it happens. On iOS and Android we keep this connection up with sockets. But this doesn't seems to be possible with background tasks on Windows Phone?
Is there somehow we could "ping" the server/service more often then every 30 mins from a scheduled task? The app will only be used by known people so if there is a possibility to "fake" a music app och location app that would do it. The app will probably be released as a enterprise company app so all users will be aware of the possible "battery drain" that could be caused.
If using Push notification, how long can it take before a device gets it and could the service know right away if that device received it?
You can use geolocation service and keep your app in background or even fake audio agent. You are free with choice because company apps have no public certification process.
Here is some info about Company Hub and enterprise deployment of Windows Phone 8 apps.
I have Windows Phone 8 emulator running and a sample app is registering and I receive the URI but when I try to send a notification, I'm not receiving in the emulator. I used to be able to use the sample app with WP7 emulator and it was working and I'm able to access internet on the WP8 but not the notification. Any pointers to fix this will be great!
This is what I saw happening:
1- If I didn't open the app after receiving multiple notification it looks like the OS will not show notification anymore.
2- if you try to send too many notifications.
3- If the app is open the notification will not show as a toast.
4- Sometime I had to open the browser and go to website to force the device to connect to the internet, probably because the phone was on wifi.
It's a pretty open question, since there might be multiple problems, but start with this (source: MSDN):
The push client service on Windows Phone Emulator must be ready before
you can use push notification APIs. Push client service on the
emulator takes two minutes to activate after you start the emulator,
starting from when the Start screen first appears.