https://github.com/geri-borbas/unity.library.eppz.deeplink
Deep linking native iOS plugin for Unity. With deep link callbacks on app launch as well.
https://github.com/geri-borbas/unity.library.eppz.deeplink
Last synced: 4 days ago
JSON representation
Deep linking native iOS plugin for Unity. With deep link callbacks on app launch as well.
- Host: GitHub
- URL: https://github.com/geri-borbas/unity.library.eppz.deeplink
- Owner: Geri-Borbas
- License: other
- Created: 2018-01-23T16:26:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-24T20:21:50.000Z (over 7 years ago)
- Last Synced: 2025-03-29T15:34:41.010Z (28 days ago)
- Language: Objective-C
- Homepage:
- Size: 154 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eppz.DeepLink [](https://travis-ci.org/eppz/Unity.Test.eppz)
> part of [**Unity.Library.eppz**](https://github.com/eppz/Unity.Library.eppz) Deep linking native iOS plugin for Unity. With deep link callbacks on app launch as well.
## Simple usage
```csharp
// Just provide a lambda.
DeepLink.OnOpenURL((string URL, string sourceApplicationBundleID) =>
{
// Do something useful with `URL` (and `sourceApplicationBundleID`).
});
```This action will be called even when the app has launched via deep linking (on the first `Update()` of the plugin class).
> The deep link information will be picked up from both [`application:didFinishLaunchingWithOptions:`](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1622921-application?language=objc), [`application:openURL:options:`](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application?preferredLanguage=occ) (iOS 9.0 and above) and [`application:openURL:sourceApplication:annotation:`](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623073-application?language=objc) (from iOS 4.2 to iOS 9.0).
## Sandbox
You can **simulate the callback in the Unity Editor**, when you simply put some values into the `Sandbox` properties at the `DeepLink` inspector. Please note that if a notification is available (an URL value is present), it gets consumed on the next `Update()`, the values from the `Sandbox` properties disappear (this simulates the polling of the native iOS plugin). You can either paste values to the inspector, or disable `DeepLink` component / pause the game while typing.
## License
> Licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).