restrict the windows phone app for specific devices -


i want application should work on specific devices\os "lumia 650"\"windows phone 8", project requirement.

is possible ? if yes should mention details ?

it not problem restrict windows phone 8. need build targeting windows phone os 8.0. device model in app.xaml.cs

    private void application_launching(object sender, launchingeventargs e)     {         var devicename = deviceextendedproperties.getvalue("devicename").tostring();         if (!devicename.contains("lumia_650")) // please check phone's actual value             application.current.terminate();     } 

if want show friendly message before exits can move code mainpage.xaml.cs add messagebox.show(message) part.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -