Enoch
  • The Vision
    • ๐ŸŽฏOur Mission
    • ๐Ÿ•ต๏ธโ€โ™‚๏ธWho we are
    • ๐ŸŽ‡What problem are we Tackling?
  • Enoch Introduction
    • ๐ŸŽฏIntro to Enoch
    • ๐Ÿš€Stargate App
    • ๐Ÿ›’3D Marketplace App
  • Roadmap
    • ๐Ÿ—“๏ธRoadmap
  • Enoch platform
    • ๐ŸซProduct categories
  • Create
    • ๐ŸคPosts
    • ๐Ÿซ‚Community
    • ๐ŸŒ†Event
    • ๐Ÿง˜โ€โ™€๏ธNFT
    • ๐ŸŒSphere
    • ๐Ÿคพโ€โ™‚๏ธReel
    • ๐ŸŽถProfessional Page
    • ๐Ÿ”ˆGroups
    • ๐ŸŽŸ๏ธJob
    • ๐ŸŒค๏ธAd
  • PERSONAL
    • ๐Ÿ’ธMonetization
    • ๐Ÿ’ฐWallet
    • ๐Ÿ’ณGiftcard
    • ๐Ÿ“…Calendar
    • ๐Ÿงšโ€โ™‚๏ธRanking
    • โญBadges
    • ๐ŸŽŸ๏ธDaily Missions
    • ๐Ÿ’ฐPricing
    • ๐ŸงพBilling
    • ๐ŸคAffiliate
  • Social
    • ๐Ÿ“ฒHome Feed
    • ๐Ÿ‘จโ€๐ŸŽ“User Profile
    • โ–ถ๏ธMedia Content
    • โšกMessenger
    • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘My Network
    • ๐Ÿง˜โ€โ™€๏ธCommunity
    • ๐ŸŽถEvents
    • ๐ŸŽŸ๏ธLive-Zone
    • ๐Ÿ”ˆSphere
    • ๐Ÿ“ƒProfessional Pages
    • ๐ŸŒค๏ธNews Feed
  • Creative
    • โ›ฉ๏ธIntroduction
    • ๐Ÿ‘ฉโ€๐ŸŽจCreator Portals
    • ๐ŸŽ™๏ธfantasy Studio
      • My Avatars
      • Meridian
      • Magic Tools
        • Journal
        • Inventory
        • Shop
        • Avatar
      • Gallery
    • ๐ŸŽนEnoch Studio
  • Shopping
    • ๐Ÿ“ŠEnoch 3D Marketplace
    • ๐Ÿ›๏ธSeller's Shops
  • Find Work
    • ๐Ÿ’ผJobs
  • Developers (Integration Guide)
    • ๐Ÿ‘พOverview
    • ๐ŸŸFish Hub
    • ๐Ÿค–Avatar Creator Setup
      • Avatar URLs
      • Avatar codes
    • ๐Ÿ”ตUnity Integration
      • Quick start
      • Load Avatars
      • Avatar Creator Integration
        • Android and iOS
        • VR and PC
        • WebGL
      • Optimize
        • Avatar Configuration
        • Avatar Caching
      • Code examples
        • Loading 3D Avatars
        • Loading 2D Avatars
        • Avatar Creator ( WebGL)
        • Avatar Creator (Desktop)
        • Avatar Creator (Mobile)
        • Distance-based LODs
      • Troubleshooting
        • Avatar loading issue
        • iOS issues
        • WebGL issues
        • Firewall issues
      • Help us improve the Unity SDK
      • FAQs for Unity
    • โšกUnreal Engine Integration
      • Quick start
      • Load Avatars
      • Avatar Creator Integration
        • Android and iOS
        • VR and PC
        • WebGL
      • Optimize
        • Avatar Configuration
        • Avatar Caching
      • Code examples
        • Loading 3D Avatars
        • Loading 2D Avatars
        • Avatar Creator ( WebGL)
        • Avatar Creator (Desktop)
        • Avatar Creator (Mobile)
        • Distance-based LODs
      • Troubleshooting
        • Avatar loading issue
        • iOS issues
        • WebGL issues
        • Firewall issues
      • Help us improve the Unity SDK
      • FAQs for Unity
    • ๐Ÿ•ธ๏ธWeb & native Integration
      • Quick start
      • Code examples
      • Common errors
  • Enoch Advertising
    • ๐ŸŽŸ๏ธAd Manager
    • โญEnoch Ad
  • Settings
    • ๐Ÿ”’Your Private Profile
    • โš™๏ธYour Account
  • Open Finance
    • ๐Ÿ“–Dashboard
    • ๐Ÿ“ˆTrade
      • Paradigm Swap
      • Paradigm Liquidity Pool
      • Paradigm Bridge
    • ๐Ÿ”ฎFinancial Pools
      • Ranking Pools
      • Daily Missions Pools
      • Cerberus Pools
      • Trinity Pools
      • Prometheus Pools
      • Lazarus Pools
  • Enochian Party Program
    • ๐ŸคธIntro to Enochian Party Pass
    • ๐Ÿ›ซParty beginnerโ€™s guide
    • ๐Ÿ„Enochian Season
    • ๐ŸŽ‰Party Pass Guide
    • ๐ŸบParty Pass Benefits
    • ๐Ÿ“ถParty FIND ANSWERS
    • ๐ŸคบNinja Warrior 3D Collectectibles
    • ๐ŸƒArk Of Convenent
  • Yokai Air Drop
    • ๐ŸคธIntro to Yokia Air drop
    • ๐Ÿ„Meet the yokai mythical creatures
    • ๐Ÿ›ซYokai beginnerโ€™s guide
    • ๐ŸŽ‰Yokai Air drop Guide
    • ๐Ÿ“ถYokai Find Answer
    • โœ–๏ธYokai Mutation
  • TECHNOLOGY
    • ๐Ÿฆธโ€โ™‚๏ธWeb 2.0 Protocols
    • ๐Ÿฆธโ€โ™‚๏ธWeb 3.0 Protocols
      • Metatron
      • Uriel
      • ZK Rollups
    • ๐Ÿ—๏ธWeb 3.0 Smart Contracts
      • Dual Token
      • Stargate
      • 3D MarketPlace
      • Financial Pool
      • Yokia AirDrop
      • Enochian Party Pass
    • ๐Ÿค–Atlantis A.I engine
      • Feature
        • Text-to-Speech
        • Evie-Chat-Assistant
        • Video-Animation
        • Text-To-3D
        • Text-to-Image
        • Text-to-Video
        • Text-To-Music
        • Torus
        • 2d to 3D
      • Evie Chat Assistance
    • โ˜๏ธCloud Infrastructure
  • API references
    • โ›“๏ธEnoch Rest APIs
      • Access and Authentication
      • Response codes & types
      • GET - 3D Avatars
      • GET - 2D Avatars
      • GET - Metadata
      • Changelog
    • ๐Ÿ”ตUnity SDK
      • AvatarCache
      • AvatarConfig
      • AvatarObjectLoader
      • AvatarRenderLoader
      • WebView
      • SDKLogger
      • Changelog
    • โšกUnreal Engine SDK
      • AvatarObjectLoader
      • AvatarRenderLoader
      • Actor
      • Component
      • MemoryCache
      • Setting
      • BlueprintLibrary
      • FunctionLibrary
      • AvatarConfig
      • Changelog
  • Investment
    • ๐Ÿ“ˆMetanomics
    • ๐Ÿช™Dual Token Model
    • ๐Ÿ’ฒEnoch Yield Farming
    • ๐Ÿ’ธ$ENOCH Investor benefits
    • โ”FAQ
  • Enoch Ecosystem & Functions
    • ๐ŸงชEnoch Labs
    • ๐Ÿ’นHow to earn income in Enoch
    • ๐Ÿ‘ฝSocial Fi
      • Ranking Pools
      • Daily Missions
    • ๐Ÿ’ธSocial Monetization
      • Live Gifting
      • Uriel Gifting
      • Premium Content
      • Seller Shop
      • Ranking
      • Daily Mission Prizes
      • Drops
  • Payment Gateway
    • ๐ŸฌPayment Gateway
  • Team
    • โญTeams
  • ENOCH TUTORIALS
    • ๐Ÿ‘ฅSocial
      • Profile Setup
    • ๐Ÿ›๏ธShopping
      • Setting up your Shop
    • ๐ŸŽ—๏ธCreative
      • ๐Ÿ‘˜Becoming a 3D artist
    • ๐Ÿ’ŽOpen Finance
      • Staking Pools
      • DEX
      • Love and Enoch
  • KNOW US MORE
    • โ›‘๏ธSupport and Safety
Powered by GitBook
On this page
  • Prerequisites
  • Project setup (Android and iOS)
  • Deploy on Android
  • Troubleshooting
  • Deploy on iOS
  1. Developers (Integration Guide)
  2. Unreal Engine Integration
  3. Avatar Creator Integration

Android and iOS

PreviousAvatar Creator IntegrationNextVR and PC

Last updated 2 years ago

Users can create Enoch avatars seamlessly in a WebView displayed within a Unity application.

Prerequisites

Enoch SDK. You need the Enoch SDK for Unity installed in your project to retrieve avatars. See the Quickstart guide for instructions.

Deploying the app. In order to test your WebView app, you have to deploy it to a physical or virtual device. See the Unity documentation on how to do that.

  • development with Unity documentation.

  • development with Unity documentation.

Project setup (Android and iOS)

Creating a Scene with a WebView in your Unity project is the same for Android and iOS.

  1. Create or open your Unity project.

  2. Import the Enoch SDK into your project, if you haven't done so already.

  3. Navigate to Assets > Plugins > Enoch avatars > Examples > Webview Examples.

  4. Open the WebviewExample Scene.

  5. In the Hierarchy, notice the WebviewTest game object. It has a WebViewExample script component, as well as a Canvas with some buttons.

  6. Open and examine the WebviewExample script. Notice the following.

    • Variables for a GameObject avatar, as well as fields for the UI elements.

    • Start() adds Listeners to the buttons.

    • DisplayWebView() creates a Webview for the Avatar Creator if there isn't one.

    • OnAvatarCreated(). Once the avatar has been created by the user, this callback destroys any existing avatar, instantiates an AvatarLoader, sets callbacks for success and failure, and then loads the current avatar.

    • HideWebView() hides the WebView.

    • Destroy() cleans up the listeners.

  7. Open the Build Settings to set up deployment for your chosen platform.

Deploy on Android

  1. In Build Settings, set the Platform to Android.

  2. Check Development Build.

  3. Click Player Settings....

  4. Find Player > Other Settings > Identification.

    • Check Override Default Package Name.

    • Set a unique Package Name in the format com.YourCompanyName.YourProductName.

  5. Find Player > Other Settings > Under Configuration > Camera Usage Description and put some descriptive text in this mandatory field.

  6. Find Player > Other Settings > Under Configuration > Microphone Usage Description and put some descriptive text in this mandatory field.

  7. Close the Project Settings.

  8. On your device, turn on USB debugging in your Developer Options settings.

  9. Connect your device to your computer.

  10. Click Build and Run.

  11. Once the app opens on your device, click the button. Give permissions, and off you go.

Alternatively, you can build the APK and deploy it on your own.

For release builds, see the Unity and Android documentation.

Troubleshooting

  • If you don't have a subdomain, this warning will pop up, and you can click Continue with 'demo' subdomain.

  • If your package name does not comply with the required format, you will get this warning and can't continue until you fix it.

Deploy on iOS

  1. In Build Settings, set the Platform to iOS.

  2. Select Debug and check Development build.

  3. Find Player > Other Settings > Identification.

    • Check Override Default Package Name.

    • Before you build your Project for iOS, make sure that you set the Bundle Identifier.

    • Set a Package Name in the format com.YourCompanyName.YourProductName.

    • Fill in the Signing Team ID (not required for Debug builds to complete).

    • You can also choose whether your app targets the simulator or an actual device. To do this, change the SDK version** >> Target SDK to Simulate SDK or Device SDK.

  4. Find Player > Other Settings > Under Configuration > Camera Usage Description and put some descriptive text in this mandatory field.

  5. Find Player > Other Settings > Under Configuration > Microphone Usage Description and put some descriptive text in this mandatory field.

  6. Close Project Settings.

  7. Click Build.

  8. In the file explorer, find your Builds folder and in it the Unity-iPhone.xcodeproj.

Publication follows the the standard procedure for publishing Unity projects to iOS.

Publishing for iOS is different from publishing for platforms such as Windows or macOS. Due to restrictions in access to development tools, Unity can only create an Xcode project for an iOS game or app and not build the binary directly.

See these resources:

In this tutorial, you will learn to publish applications to iOS.

โšก
Android
iOS
https://learn.unity.com/tutorial/how-to-publish-to-ios-2019-3#5e340ca6edbc2a05676e5676
https://docs.unity3d.com/Manual/StructureOfXcodeProject.html
https://docs.unity3d.com/Manual/iphone-GettingStarted.htm