Every sample I've seen for updating the historyitem in a Windows Phone 8 Media Hub app shows using a local image/uri for displaying the background of the item.
However, I am streaming the file, and I have a remote URI for that song cover, but I cannot seem to use this uri for the history item.
I attempted to download the image to localstorage, but this appears to not always work, and crashes the background agent.
not to mention the fact that I have to do this asynchronously, and needs to support downloading it from the background agent in case the user is not running the app when the track changes...
am I attempting to do something that isn't supported?
No what you are attempting is supported. It is possible to download images in background agents and then use them for the history items.
Related
proteus is basically a runtime layout engine for Android developed by Indian e-commerce Flipkart.
Basically, I want to be able to control my home screen & Support Screen of the app from a backend server, so that I don't have to push every for every small change and also I don't want to use web views (we all know the limitations)
I don't think such a tool exists but you should look into Firebase, specifically the remote config module. It allows you to set parameters from your backend which can then be read on your mobile app, at every launch for example. This would allow you to set custom values for any variable you might need on these screens.
You could also look into AppCenter by Microsoft. It is a service which lets you deploy app updates over the air instantly, without going through the App Store and Play Store review processes. The only downside is that you can't push updates containing native code as your app needs to be re-bundled.
We're trying to build an app that can track the location of the device on-demand. So admins could send a ping signal and get back the current location of the device. Sort of like (find my phone). The functionality should work even if the app is in the background, when the device is locked, and even be available after a device restart without having to open the app first.
We're building the app using React Native and we were looking at some options for background services and push notifications but none seem to satisfy our needs. Any ideas?
You might be interested with this paid solution: https://www.transistorsoft.com/shop/products/react-native-background-geolocation
I want to know about process for managing images for an iOS app dealing with large images. I have done all the steps separately and everything works properly if performed individually. The flow is as given below:
Capture image on iPhone (Full sized images of 2-5 MB)
Store the image locally on iPhone (where should it be stored in NSUserDefaults or temp folder or coredata?)
Show image locally
Upload the image to server when internet connection is available
Download the image from server (I use SDWebImage) to show on all devices
I can do all the steps independently properly but when these are combined they cause problems in app.
The app requires to capture image and show them to table view from local storage until its uploaded on server.
Do I need to upload it to server and download it again before even showing to local table view? If not how should it be managed within app The best case should be that it gets saved in local storage and just uploaded & not downloaded again until its available locally.
I understand how i can tie my application to the windows push notification service but the code i have to write to do so will only be reached when my app is started by the user. What if i want my application to receive push notifications when it has just been installed ?
the same question applies to background tasks
Setting up push notification channels and background tasks does require and app to be run at least once. You can, however, set up periodic notifications in Windows 8.1 through an entry in the manifest, so that you can have a live tile experience after install but before the app is run. If you do that, you can at least surface some info on the live tile right away to invite the user into the app, after which you can customize the experience much more with push notifications and background tasks.
You can find the periodic update URI field in the manifest editor's Application tab under Tile Update. The XML schema ref is here: http://msdn.microsoft.com/en-us/library/windows/apps/dn391689.aspx.
Who will install the background agent or create push notification channel in this case? Yes, it should.
With a company App configured on a Windows phone there is the posibiltiy to push the installation of an App. When the user starts the pushed App some configuration data must be introduced. I would like to save the user this step but I still don't know how. Isn't it possible to push files over the company App/Exchange, as it is on a Windows machine? So I could read the configuration out of this file.
your use case does raise many questions (probably just terminology)
The only way to push an APP to a device is through the Windows Phone store or website.
If you want to push configuration to a device for an app then the app must be run at least once to enable that ability and you could then use a background task to periodically check for new configuration and download it.
The other thing you can investigate is push notifications but they are not really meant for pushing data, you can sent simple objects or data to the device as a raw push but the app must be running first.
The most common way to achieve what you describe is to have the app load config at launch, locally first and then update it from a web call (if web is available, as these are mobile devices you can not guarantee connectivity). We do something very similar with AdRotator where we try to download config at start and if that fails use a locally cached version.
As of WP 8.0 there isn't the possibility to push Apps or Files through the company App.