i am currently developing a Windows Phone Project consisting of multiples libraries where i will sometime need to update the different assemblies by downloading a DLL file over the internet.
Is it possible to load DLL on runtime on Windows Phone 8 and accomplish the goal described above?
No this is not allowed. All binaries that run on the phone must be signed by MSFT as part of their App Ingestion process via submittal to the Windows Phone App Store.
If you need dynamic updating, you might consider using a Web App, which allows you to pull content (not binaries) from a web source.
Related
I am considering deploying my application via the windows store apart from the traditional website download (via an msi).
I created the appx package with the Desktop App Converter tool.
The application does some updates checks, and when being deployed via the windows store I would like to disable such checks.
The question is how to detect if the application was deployed via normal msi or via the windows store.
To add to nikos' comment, GetCurrentPackageFamilyName will return an error APPMODEL_ERROR_NO_PACKAGE if it's run outside the UWP context (i.e. the MSI scenario you mention).
Note that this API is dependent on Windows 8 or greater, which will preclude the app from running on Windows 7. Your can work around this by dynamically loading the API. More info here.
Is there a way to share files between two different apps written by the same vendor on UWP Windows 10 Enterprise? The apps Universal Windows apps written in C#. I'd like to be able access files that are in the install package of App B from App A.
The basic problem I want to solve is to deploy config separately from the app using MDM. I am thinking to have an App package and a Config package. Perhaps, there are better alternatives for deploying config separately using MDM.
I am converting my app from a WP8 project to a windows project. If you run the command
cordova platform add windows
Cordova will create a solution with 4 projects, one for Windows 8.1, 1 for Windows 8, one for Windows Phone and the shared project. From what i can see, these are javascript projects, but i need to run some c# code to start a background service when the app starts. In a WP8 project you can add this code to the Mainpage.xml.cs file.
Is there no c# code that runs in these types of projects, or can you attach any code to run upon startup? How do people start background tasks in these apps else?
In Apache Cordova main page, there is a bunch of links to download Cordova Component for each platform. Choose the one for WP8 GitHub repository, and you will be redirected to
https://github.com/apache/cordova-wp8
Download the repository as a Zip from the right hand side of the page, after unzipping the file, you will happily find that the Cordova library and the project template are written in C#.
I have an application which microsoft is preloading in some devices. I want to give offers to those users who are using these preloaded apps. But how can i distinguish if the app is preloaded or installed from marketplace on that device?
If you use WP Silverlight you can do this by 2 ways:
1. By version: you can parse your application page in store and get current version of your app then compare store version with app's version.
2. By specific file: you can check file which added only in published packages: System.IO.File.Exists("WMAppPRHeader.xml");
Regards.
In Windows Phone Extended properties https://msdn.microsoft.com/library/windows/apps/microsoft.phone.info.deviceextendedproperties(v=vs.105).aspx
There is a property IsApplicationPreInstalled using this one can find if the application is preinstalled or not.
Usually it is recommended to have two projects for both wp7 and wp8 platforms. Wp7 project contains .cs and .xaml files, and WP8 project contains links to that files.
I think that there is no reason to compile non-platform specific business logic code twice, since it can be referenced to WP8 project.
I'm thinking about following solution structure:
Business logic dll compiled for wp7 (not a PCL)
UI comliled for wp8
UI comliled for wp7
Such application can be compiled and I can deploy it to device/emulator.
The question is: will this app pass certification in Windows phone store? Or it is necessary to recompile shared dll?
UPD:
My crazy idea was born after this steps:
Create new WP7 app (WindowsPhoneApplication1)
Create class library targeted to WP7 (WindowsPhoneClassLibrary1) Use it in WindowsPhoneApplication1
Use Upgrade to WP8 menu. WindowsPhoneApplication1 will be updated to WP8, but the referenced project will be still targeted to WP7!
Such app can be deployed to WP8 devices.
Unless you use a Portable Class Library, you'll need to have separate project files, and compile separately for WP7 and WP8.
Thanks to Claus,
I made some research, and it looks like the answer is - you can use such solution.
I didn't find related information in documentation, but here is a proof from one of MSFT tech. evangelists from Netherlands: link to blogpost
The basic idea is to move all our code that can be used from both our existing Windows Phone 7 app as well as the Windows Phone 8 build, which we will add soon, to a Common project in the solution. The bad thing about this approach is that we have to create the Common project as a Windows Phone 7 class library, which will be used in our Windows Phone 8 build. I haven’t really noticed any negative impact of this decision in my existing apps, but note that you will be referencing a Windows Phone 7 library in your Windows Phone 8 build.
So it is a possible, but not the best solution.