# Embedding Lightship in native iOS/Android apps

**URL:** <https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486>\
**Category:** Feature Requests\
**Created:** [August 8, 2022, 1:51pm UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486 "2022-08-08T13:51:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josef\_Waschlab](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Josef\_Waschlab](https://community.nianticspatial.com/u/Josef_Waschlab)\
**Post date:** [August 8, 2022, 1:51pm UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/1 "2022-08-08T13:51:41Z")

</div>

Hi there,

we are currently developing an app with Lightship ARDK, and will need to figure out how to implement the AR features into our app. So far, our plan is to offer a UI and frontend with react/Ionic, communicating via an API with the backend, and only when the user chooses to, should the AR be enabled and the view switched from the UI to the camera feed.

Has anyone tried to embed a Lightship Scene into a proper app yet?  
If so, how did you manage building for iOS/Android separatley?  
Are there any unexpected difficulties (with Unity in general)?  
Is there going to be a guide/tutorial by Lightship on how to embed it into other apps?  
Has anyone experienced with the capabilities of the Unity UI? Is it sufficient to develop a proper UI?

I am aware that this isnt really a Feature Request, but I dont know where I else I should post this question.

Thanks!

---

<div class="post-metadata">

**Author:** ![Umaiya\_Doddamani1](https://avatars.discourse-cdn.com/v4/letter/u/439d5e/32.png) [@Umaiya\_Doddamani1](https://community.nianticspatial.com/u/Umaiya_Doddamani1)\
**Post date:** [August 8, 2022, 7:40pm UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/2 "2022-08-08T19:40:11Z")

</div>

Hi Josef,

Please refer to the [AR Voyage](https://lightship.dev/docs/ardk/ar_voyage/index.html#ar-voyage) document, which provides a good starting point for you. Basically, this is the Lightship Demo Sample which is an example of a full ARDK app that uses several ARDK features.

You can develop an app with Lightship ARDK, please consider going through the terms of service beforehand located at [Niantic Lightship Developer Platform Terms of Service and License Agreement – Niantic Lightship](https://lightship.dev/terms/).

In addition, there is also a minimum OS version requirement for using ARDK features. You can check out our [Runtime Requirements](https://lightship.dev/docs/ardk/ardk_fundamentals/system_reqs.html#development-and-runtime-requirements-of-ardk) documentation for more information on that.

Good luck on your ARDK journey. Thanks.

---

<div class="post-metadata">

**Author:** ![Chankeiro](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@Chankeiro](https://community.nianticspatial.com/u/Chankeiro)\
**Post date:** [August 16, 2022, 1:44pm UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/3 "2022-08-16T13:44:30Z")

</div>

Hi @Josef_Waschlab,

I don’t know about react/Ionic, but you should be able to run Lightship within an Unity Activity launched from a native app. Take a look here [Unity - Manual: Using Unity as a Library in other applications](https://docs.unity3d.com/2019.3/Documentation/Manual/UnityasaLibrary.html) I have tested it on Android and it works.

Regards

---

<div class="post-metadata">

**Author:** ![Josef\_Waschlab](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Josef\_Waschlab](https://community.nianticspatial.com/u/Josef_Waschlab)\
**Post date:** [August 17, 2022, 8:23am UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/4 "2022-08-17T08:23:06Z")

</div>

Ahh wonderful!  
Thank you

---

<div class="post-metadata">

**Author:** ![Shikhar\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shikhar\_Kumar](https://community.nianticspatial.com/u/Shikhar_Kumar)\
**Post date:** [November 26, 2022, 8:02pm UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/5 "2022-11-26T20:02:22Z")

</div>

Have you tested it on iOS too? I tried iOS but somehow the app seems to crash when ARDK is added using a library.

---

<div class="post-metadata">

**Author:** ![Chankeiro](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@Chankeiro](https://community.nianticspatial.com/u/Chankeiro)\
**Post date:** [November 27, 2022, 2:14pm UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/6 "2022-11-27T14:14:06Z")

</div>

No, I didn’t tested it on iOS yet, but I would like to do it soon.

If you are able to solve your issue, please, post the solution here. It might help me or others.

---

<div class="post-metadata">

**Author:** ![Josef\_Waschlab](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Josef\_Waschlab](https://community.nianticspatial.com/u/Josef_Waschlab)\
**Post date:** [November 30, 2022, 10:01am UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/7 "2022-11-30T10:01:22Z")

</div>

A little note on embedding a Lighship Unity project in a native application (in my case ReactNative).

- Export the project and add it into XCode
- Follow the steps in “iOS” from this git repo [GitHub - azesmway/react-native-unity](https://github.com/azesmway/react-native-unity)
- in XCode under your native Application - General - Frameworks, Libraries … add the libraries  
ardk\_client\_platform.framework  
infinitam.framework  
You should be able to find them under your Projects Build folder Frameworks - ARDK - Plugins - unity\_exports - ardk\_client\_platform - Plugins - iOS

Include these and remove the same libraries from native Application - Build Phases - Link Binary with Libraries

Hope this helps

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/system/32/13_2.png) [@system](https://community.nianticspatial.com/u/system)\
**Post date:** [December 6, 2022, 11:55am UTC](https://community.nianticspatial.com/t/embedding-lightship-in-native-ios-android-apps/2486/8 "2022-12-06T11:55:12Z")

</div>

Closed on December 6, 2022, 11:55am UTC

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.
