I'm want to know how can I create an application that is launched with built in events in windows phone like incoming call or email reception.
There are some things that you can add your app to. Perhaps you create a Photo App or a Music App. You can register your app as that type and it will prompt the user to open a photo or song with your app.
Developing Windows Phone 8 apps with file and URI associations
Outside of that though you cannot access phone events. Functions such as this are locked off to developers by Microsoft to provide added security to users and also provide a consistent experience across the platform.
Related
So for our project, we have this app that's in the Windows Store. It is a Unity UWP app. At some point, we want to check if program X is installed on the user's machine. If yes, we want to launch it, if no we want to provide the user with a download link (or whatever.)
The app we want to launch, however, is a Unity standalone app. The user can download it from our website.
I tried multiple things. PlayerPrefs, Register checking etc. None of these really work. Register checking turned out to work decently well, but that only works between standalone apps. UWP apps seem to have no access to the Register.
Which left me thinking about URIs etc. But, I'm a complete noob regarding all of this and I have no clue how or where to start. Any help or direction is highly appreciated.
Ideal scenario:
User downloads our app from the Windows Store
Users click a button within our app
Our app checks the user's system for App X
If App X is installed, we launch it, if not we do something else
App X opens.
The UWP app cannot interact with the standalone Unity app directly.
You can write another standalone desktop “helper” app that does the actual work of checking the registry and launching the Unity app, and then make this “helper” app part of the UWP package and resubmit the package to the Windows Store.
Keep the “helper” app as simple as possible so it doesn’t have other dependencies.
Use FullTrustProcessLauncher to launch the helper app when the user clicks the button.
And the UWP app needs to have runFullTrust capability in order to use FullTrustProcessLauncher.
runFullTrust is a restricted capacity and when you submit the app to the Windows Store it is required for you to specify the reason why the capacity is necessary for your app. See this answer for more details.
I'm actually creating an UWP 8.1 app for one of my client.And I've got some little issue with it.At some point of my app I've to get all the names of installed app in the device and view it as a list.When the user will click on any of them, I've to launch that certain app.
I've already tried to add restricted capabilities in the app manifest but it shows a blue line when I add,
Morever I can get access to the AppData/Packages by using folderpicker somehow but don't know what to do.
The app is for WinRT surface 3 and it isn't going to store or anything it has only one user. So if anyone know any sort of solution please let me know.
The PackageManager class has the methods to enumerate all installed apps.
However, in 8.1 the PackageManager can only be used in desktop apps (e.g. WPF, Winforms, Win32). It cannot be used from a Store app on that version of the operating system.
On Windows 10 you can use the class from both Store/UWP apps as well as classic desktop apps.
I am developing an Universal app capable of running on both Windows Phone and Windows. But initially I want it to be available to phones only because I have not made the Windows part of it. So how can I limit the target devices of this Universal app without creating a new app and without removing the Windows Code from it. I want it to be available to phones only for deployment. Can anybody give a solution?
Windows and Windows Phone apps are submitted separately to the Store. The process for submitting Windows apps is outlined here and for Phone here. So you can simply submit one without the other.
You can also stop building the Windows portion of the app using the Configuration Manager if you want to (to save time or avoid compilation errors you don't want to fix yet).
How can I tell using c# or winjs when your app that the user downloaded is being uninstalled?
Can you call home, or try to save the client by giving/redirecting them to a site with an exit poll?
Not supported. A key goal with the Windows Store is to make it seamless and painless for consumers to try apps. One result of this is that Store apps don't have any control over or hooks into install/uninstall processes. Bottom line is that the act of uninstall is not a time to try to exercise user engagement strategies. :)
Is there a way for apps running on WinRT to share information? I know about WinRT's sandboxing and the reasons behind it, but is there some mechanism for two apps created by the same author to share information or pass data between each other? A global property bag, or existing inter-app push notification or messaging scheme? I already use the Share contract mechanism for other tasks but that involves invoking the Share charm and I just want to pass a simple text message between two WinRT apps I authored. Perhaps a shared storage area restricted to apps with the same publisher ID?
I found the following related posts but none of them provide a Windows Store requirements compatible solution:
Communication between Windows Store app and native desktop application
How can a Metro app in Windows 8 communicate with a backend desktop app on the same machine?
Inter application communication in WinRT
You could use protocol activation to pass short strings between apps. Also you could point both apps at a file and use it to store shared data, but you'd need user input to be able to access the file. The good thing is though - if you'd store the file in say your OneDrive folder - your file would get automatically backed up and synced between devices. Since we are there - you could use the OneDrive SDK.