Robert Oschler
Robert Oschler

Reputation: 14375

Inter-app communication between WinRT/Windows Store apps that meets the store requirements?

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

Upvotes: 1

Views: 850

Answers (1)

Filip Skakun
Filip Skakun

Reputation: 31724

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.

Upvotes: 2

Related Questions