실행은 되지만 최신 폰(좀 안좋은 폰은 정상)에서 실행 중 아래와 같은 에러메시지를 띄우면서 크래시가 남.
----
AndroidJavaException: java.lang.IllegalArgumentException: com.xxx.xxx.xxx: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles. java.lang.IllegalArgumentException: com.xxx.xxx.xxx: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
In Unity there is across-platformway to copy a string to Clipboard. Using the GUIUtility class I’m going to show you how to copy a string into the user’s Clipboard. This should work in Unity 2017 and beyond.
By using the GUIUtility class, from UnityEngine, we can fitany C# objectwith a ToString() function into the Clipboard!
Clipboard Extension
To make it easily accessible I made the function as a string extension. By doing it this way we can use the function on any string anywhere in the code.
using UnityEngine;
public static class ClipboardExtension
{
/// <summary>
/// Puts the string into the Clipboard.
/// </summary>
public static void CopyToClipboard(this string str)
{
GUIUtility.systemCopyBuffer = str;
}
}
Example
Here is an example on how to copy different elements into the Clipboard using the ClipboardExtension:
public string GetSomeString()
{
return "This is a string coming from a function!";
}
public void TestCopyToClipboard()
{
// + Using a standard string
string testString = "Am I in the Clipboard?";
testString.CopyToClipboard();
// The content of test1 is in the Clipboard now!
// + Using a method to get a string
GetSomeString().CopyToClipboard();
// The content returned by GetSomeString() is in the Clipboard now!
// + Using a C# object with a ToString() method
Color colorTest = Color.red;
colorTest.ToString().CopyToClipboard();
// The string version of the object colorTest is in the clipboard now!
}
You can try out this code for yourself! Run it, then try pasting your Clipboard into a notepad. It has been tested andworks on PC, Android and iOS!
[Attribution] updatePostbackConversionValue returned error: 작업을 완료할 수 없습니다.(SKANErrorDomain 오류 10.).
iOS 빌드하고 실행에 별다른 문제는 없지만 위와 같은 에러가 떠서 뭔가하고 찾아봤는데,
Apple 측 답변으로는 에러메시지는 뜨지만 정상 동작하고 있다는 것 같다.
무시..
[참조]
Got an answer from Apple:
There has been an issue identified starting iOS 15.3, where the view through APIs may return an "unknown error", in cases when no error has actually occurred. In 15.3 that error is ASDErrorDomain:500. In 15.4 that error is now defined in the public SDK as SKANErrorDomain:SKANErrorUnknown (value 10). However, in those cases no functional error has actually occurred. The impression was recorded by the system.
We recommend that you ignore all errors of type ASDErrorDomain:500 / SKANErrorDomain:SKANErrorUnknown (value 10), as they are not real errors. The impression is recorded on the device regardless of those errors.