iOS Native
How to integrate Ready Player Me into iOS native applications.
Last updated
Was this helpful?
How to integrate Ready Player Me into iOS native applications.
Last updated
Was this helpful?
You can use the Ready Player Me web platform to add avatars to your native iOS application. This general integration guide gives an overview of the main methods of adding avatars to your app.
For integrating the Ready Player Me web platform directly into your native application and retrieving the avatar URL, the general process is as follows.
Spawn a web browser or switch to a view with an embedded web browser (for example, using WKWebView
as in the ).
Navigate to the desired Ready Player Me URL, e.g https://demo.readyplayer.me/avatar.
Inject Javascript code with an eventListener
linking a callback to a native function (see to see an example of this).
Retrieve the event data (a URL as a string).
Once you have retrieved the generated Avatar URL, you can make a web request to download the avatar .glb file. To load this into a 3D scene, you need to use a third-party framework that supports the loading of .gltf or .glb files as Xcode does not natively support .glb as a 3D file format.