Search code examples
notificationswindows-8microsoft-metrowindows-phonelockscreen

Can I force the user to accept my app as lockscreen-only?


My Windows 8 app needs to run a background task triggered by the receipt of raw notifications sent from Windows Phone 8 apps. Responding to that event to invoke a background task is apparently only allowed for lockscreen apps:

http://dotnet.dzone.com/articles/windows-store-app-development-10?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+zones%2Fdotnet+%28.NET+Zone%29

Normally, the user has control of whether they will allow an app to be a lockscreen app or not. In my case, though, it must be such or be basically braindead. So, can I enforce that: IOW, inform that users "Install this as a lockscreen app, or don't install it at all"?

What I mean is: assuming the user retains ultimate control, will letting them know that the app won't work well without them allowing it to be a lockscreen app cause it to fail certification?


Solution

  • You bet, that's how it's done.

    Want to force them to allow it? Disable the "Block" button. (just kidding, you can't)

    Remember, it's your app.

    Check out how the Store app "supports" snap view. That's a nice example to show certification requirements can be "met" at the bare least implementation.

    enter image description here

    When you read the cert reqs. read them literally.