The following forum(s) have migrated to Microsoft Q&A (Preview): Developing Universal Windows apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
[UWP] - what whould be the phone productid in "Package.appxmanifest" file if i target desktop familiy ? RRS feed

  • Question

  • I migrated my windows 8.1 store app to UWP windows 10 app. and its running fine. but i have a small question.

    I did followed the instructions mentioned in this link

    Migrating windows 8.1 store app to UWP windows 10 app 

    and now my question is what is the need of phone identity tag in manifest file if i target my app to desktop family only. it says this is mandatory and accepts only GUID. Actually my apps identity is the production id and is not GUID its like some digits and app name.

    ex: 34245company.appname

    then what would be the phone product id for phone identity tag for my app ?


    suresh

    Monday, August 3, 2015 6:14 AM

Answers

  • Hello Dev_SCC,

    I think this is by design even when you create new UWP app and not migrate from windows 8.1 you get the <mp:PhoneIdentity PhoneProductId="aa3815a1-2d97-4c71-8c99-578135b28cd8" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> by default where phoneproductid is unique to your app. so if you don't want to publish to phone store app then just set the PhonePublisherId to zeros as described.

    With Regards,

    Krunal Parekh


    Thanks MSDN Community Support Please remember to Mark as Answer the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Krunal Parekh Tuesday, August 11, 2015 7:59 AM
    • Marked as answer by Jamles Hez Tuesday, August 11, 2015 10:12 PM
    Thursday, August 6, 2015 8:14 AM

All replies

  • Hello Dev_SSC,

    I think this is because UWP has single manifest for both store app and phone app. If you go though the api reference for the app manifest in the windows 10. Please see: pm:PhoneIdentity

    as per description: "If your app is an update to an app previously made available on Windows Phone, ensure that this element matches what is in the app manifest of your previous app.  Use the same GUIDs that were assigned to the app by the Store.  This ensures that users of your app who are upgrading to Windows 10 will receive your new app as an update, and not as a duplicate."

    With Regards,

    Krunal Parekh


    Thanks MSDN Community Support Please remember to Mark as Answer the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, August 4, 2015 7:45 AM
  • Thanks for answering Krunal Parekh.

    I dont have windows phone app. I want to target only the desktop family. So is it mandatory to provide the phone identity ?


    suresh

    Tuesday, August 4, 2015 11:49 AM
  • Hello Dev_SCC,

    I think this is by design even when you create new UWP app and not migrate from windows 8.1 you get the <mp:PhoneIdentity PhoneProductId="aa3815a1-2d97-4c71-8c99-578135b28cd8" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> by default where phoneproductid is unique to your app. so if you don't want to publish to phone store app then just set the PhonePublisherId to zeros as described.

    With Regards,

    Krunal Parekh


    Thanks MSDN Community Support Please remember to Mark as Answer the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Krunal Parekh Tuesday, August 11, 2015 7:59 AM
    • Marked as answer by Jamles Hez Tuesday, August 11, 2015 10:12 PM
    Thursday, August 6, 2015 8:14 AM
  • This doesn't answer the question. I updated from a Windows Store 8.1 application using the link above. In my manifest I have the following:

    <Identity Name="A123B456C.MyAppName" Publisher="CN=12345678-90AB-CDEF-1234-567890ABCDEF" Version="3.5.0.0" ProcessorArchitecture="neutral" />
      <mp:PhoneIdentity PhoneProductId="A123B456C.MyAppName" PhonePublisherId="00000000-0000-0000-0000-000000000000" />

    This does not compile because the PhoneProductId must be a GUID. But what guid?

    Friday, November 17, 2017 7:52 PM