Create a Lens

Every Lens starts with a package ID. Creating the Lens in the Developer Portal claims that ID for your organization, permanently.

View as Markdown

Choose a package ID

The package ID identifies your Lens everywhere: on devices, in the store, and in the API. Use reverse-DNS form:

com.example.periodic_table

Rules:

  • 3–128 characters, with at least two dot-separated segments.
  • Each segment starts with a lowercase letter and contains only lowercase letters, digits, and underscores.
  • It cannot end in .debug.

A package ID belongs to the first organization that registers it. Once used, it stays reserved even if the Lens is deleted, so choose one you will keep.

Create from Lens Studio

  1. Set the package ID in your Lens Studio project.
  2. Export or publish the project from Lens Studio. Lens Studio uploads the signed SPK and opens the Developer Portal.
  3. Choose the organization that will own the Lens and confirm.

The package ID and icon come from the SPK and can't be edited in the portal. To start from an earlier release, use Copy store details from.

Create in the portal

  1. Open Lenses and select Create Lens.
  2. Enter a name, the package ID, and the owning organization.
  3. Upload an SPK whose package ID matches.

Next steps