Skip to content

Integrate native web view in exported Unity Project

Kerstin Blumenstein edited this page Feb 6, 2018 · 6 revisions

Unity

Set Player Settings —> bundle identifier: at.ac.fhstp.meeteux / Version & Build Nr.

Build in Unity – Replace
Change Project/General – Signing Team —> FH (University of Applied Sciences)

Xcode

Add new Group: Stuff
Add new Swift File in Stuff: WebViewController.swift (+ Create Bridging Header → Unity-iPhone-Bridging-Header.h) → put online viedDidLoad in to test
Add or Copy: CoolUnitySceneViewController.h & .mm
Add or Copy: MyAppController
Add Storyboard: “Main”
Comment all code in file in Libraries/VuforiaNativeRendererController
TEST

Copy whole code to WebViewController

Add cocoapods —> http://www.appcoda.com/cocoapods/ —> Copy kontakt.io things to podfile
Info.plist → additional entries
Privacy – Camera Usage Description
Privacy – Location Always Usage Description
Privacy – Location When In Use Usage Description
Privacy – Location Always and When In Use Usage Description
Privacy – Bluetooth Peripheral Usage Description

Finder: Create www-Folder
Add folder to project as ressources
Build Phases / Copy Bundle Resources
→ Add (Add Other) www-Folder & Stuff-Folder

Clone this wiki locally