You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
657 B
22 lines
657 B
using UnityEngine; |
|
|
|
namespace devtodev.WSA |
|
{ |
|
public static class PushActionHandler |
|
{ |
|
/// <summary> |
|
/// Method to try handle push action if it pass self arguments in startup. |
|
/// It method need to handle push action if SDK not activated yet. |
|
/// </summary> |
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] |
|
private static void HandlePushAction() |
|
{ |
|
#if !UNITY_EDITOR && UNITY_WSA |
|
if (!Metro.Push.Logic.PushActionsHandler.IsInitialized) |
|
{ |
|
Metro.Push.Logic.PushActionsHandler.Initialize(); |
|
} |
|
#endif |
|
} |
|
} |
|
}
|
|
|